WP_Block_Templates_Registry::get_all_registered()publicWP 6.7.0

Retrieves all registered templates.

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

Хуков нет.

Возвращает

WP_Block_Template[]. Associative array of $template_name => $template pairs.

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

$WP_Block_Templates_Registry = new WP_Block_Templates_Registry();
$WP_Block_Templates_Registry->get_all_registered();

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

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

Код WP_Block_Templates_Registry::get_all_registered() WP 6.7.1

public function get_all_registered() {
	return $this->registered_templates;
}