WP_Block_Type::get_uses_contextpublicWP 6.5.0

Get block uses context.

Метод класса: WP_Block_Type{}

Хуки из метода

Возвращает

Строку[].

Использование

$WP_Block_Type = new WP_Block_Type();
$WP_Block_Type->get_uses_context();

Список изменений

С версии 6.5.0 Введена.

Код WP_Block_Type::get_uses_context() WP 6.9.4

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 );
}