WP_Block_Type::get_uses_context(): array[]

In this article

Get block uses context.

Return

array[]

Source

public function get_uses_context() {
	/**
	 * Filters the registered uses context for a block type.
	 *
	 * @since 6.5.0
	 *
	 * @param array         $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 );
}

Hooks

apply_filters( ‘get_block_type_uses_context’, array $uses_context, WP_Block_Type $block_type )

Filters the registered uses context for a block type.

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.