Automattic\WooCommerce\LayoutTemplates
LayoutTemplateRegistry::is_registered()
Check if a layout template is registered.
Method of the class: LayoutTemplateRegistry{}
No Hooks.
Return
null
. Nothing (null).
Usage
$LayoutTemplateRegistry = new LayoutTemplateRegistry(); $LayoutTemplateRegistry->is_registered( $layout_template_id ): bool;
- $layout_template_id(string) (required)
- Layout template ID.
LayoutTemplateRegistry::is_registered() LayoutTemplateRegistry::is registered code WC 9.4.2
public function is_registered( $layout_template_id ): bool { return isset( $this->layout_templates_info[ $layout_template_id ] ); }