Clanbite Social Kit

clanbite_social_kit_register_feed_context( string $slug, array $args ): bool

Register a feed context for the Social feed and Social composer blocks.

Call it from the clanbite_social_kit_register_feed_contexts action. See \Kernowdev\ClanbiteSocialKit\Social\Feed_Context for every argument (query is required).

Parameters

$slug (string) Required

Context slug: lowercase letters, digits, _ and -, starting with a letter.

$args (array<string, mixed>) Required

Context arguments.

Returns

bool True when the context was registered.

Defined in inc/functions-global.php