Clanbite Social Kit JavaScript

wp.hooks.applyFilters( 'clanbite.socialKit.feedContextControl', null control, Object args )

Replaces the default subject control (number / player / team picker) for a feed context.

Return a React element to render instead; return null to keep the default.

Filter JavaScript

Parameters

$control (null)

Default null.

$args (Object)

{ context, attributes, setAttributes }: the context entry, the block attributes and the setter.

Example

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

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