Clanbite Social Kit JavaScript

wp.hooks.applyFilters( 'clanbite.socialKit.editorFeedContexts', {Array<{slug: string, label: string, subject: string, subjectLabel: string, attribute: string}>} contexts )

Filters the feed contexts offered by the Social feed and Social composer blocks in the block editor.

The list comes from the PHP feed context registry; use this to relabel, reorder or remove a context.

Filter JavaScript

Parameters

$contexts ({Array<{slug: string, label: string, subject: string, subjectLabel: string, attribute: string}>})

Contexts.

Example

wp.hooks.addFilter( 'clanbite.socialKit.editorFeedContexts', 'my-plugin/handler', function ( contexts ) {
	return contexts;
} );

Defined in src/blocks/shared/feed-context-controls.js