Automattic\WooCommerce\LayoutTemplates
LayoutTemplateRegistry::is_registered
Check if a layout template is registered.
Method of the class: LayoutTemplateRegistry{}
No Hooks.
Returns
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 10.3.6
public function is_registered( $layout_template_id ): bool {
return isset( $this->layout_templates_info[ $layout_template_id ] );
}