W3cubDocs

/WordPress

apply_filters( ‘get_block_type_uses_context’, string[] $uses_context, WP_Block_Type $block_type )

Filters the registered uses context for a block type.

Parameters

$uses_contextstring[]
Array of registered uses context for a block type.
$block_typeWP_Block_Type
The full block type object.

Source

return apply_filters( 'get_block_type_uses_context', $this->uses_context, $this );

Changelog

Version Description
6.5.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_block_type_uses_context