WP_Block_Templates_Registry::get_all_registered()publicWP 6.7.0

Retrieves all registered templates.

Method of the class: WP_Block_Templates_Registry{}

No Hooks.

Return

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

Usage

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

Changelog

Since 6.7.0 Introduced.

WP_Block_Templates_Registry::get_all_registered() code WP 6.7.2

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