WP_Block_Type::get_uses_context
Get block uses context.
Method of the class: WP_Block_Type{}
Hooks from the method
Returns
String[].
Usage
$WP_Block_Type = new WP_Block_Type(); $WP_Block_Type->get_uses_context();
Changelog
| Since 6.5.0 | Introduced. |
WP_Block_Type::get_uses_context() WP Block Type::get uses context code WP 7.0
public function get_uses_context() {
/**
* Filters the registered uses context for a block type.
*
* @since 6.5.0
*
* @param string[] $uses_context Array of registered uses context for a block type.
* @param WP_Block_Type $block_type The full block type object.
*/
return apply_filters( 'get_block_type_uses_context', $this->uses_context, $this );
}