Clanbite Social Kit

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

Register (or replace) a feed context.

public static

Class: Kernowdev\ClanbiteSocialKit\Social\Feed_Context_Registry

Parameters

$slug (string) Required

Slug: lowercase letters, digits, _ and -, starting with a letter (max 40).

$args (array<string, mixed>) Required

Context arguments; see Feed_Context.

Returns

bool True when the context was registered.

Defined in inc/Social/Feed_Context_Registry.php