# Feed_Context_Registry

Where every feed context lives, bundled or third-party.

Third-party plugins add a context on the `clanbite_social_kit_register_feed_contexts` action:

    add_action( 'clanbite_social_kit_register_feed_contexts', function () {
        \Kernowdev\ClanbiteSocialKit\Social\Feed_Context_Registry::register( 'clan_clips', array(
            'label'   => __( 'Clan clips', 'my-plugin' ),
            'subject' => 'number',
            'query'   => 'my_plugin_query_clips',
        ) );
    } );

Once registered, the context works as a block attribute value (`feedContext`), is offered in the block editor,
is served over REST at `/clanbite-social-kit/v1/feeds/{slug}/{subject}/posts`, and can accept posts from the composer.
See `Feed_Context` for every option.
