WP_Block_Processor::get_attributespublicWP 6.9.0

Returns a lazy wrapper around the block attributes, which can be used for efficiently interacting with the JSON attributes.

This stub hints that there should be a lazy interface for parsing block attributes but doesn’t define it. It serves both as a placeholder for one to come as well as a guard against implementing an eager function in its place.

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

Хуков нет.

Возвращает

never.

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

$WP_Block_Processor = new WP_Block_Processor();
$WP_Block_Processor->get_attributes();

Заметки

  • Смотрите: self::allocate_and_return_parsed_attributes()

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

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

Код WP_Block_Processor::get_attributes() WP 6.9.1

public function get_attributes() {
	throw new Exception( 'Lazy attribute parsing not yet supported' );
}