WooCommerce Code Reference

Abstract_Pattern
in package

Abstract class for block patterns.

Table of Contents

$block_types  : array<string|int, mixed>
List of block types.
$categories  : array<string|int, mixed>
List of categories.
$inserter  : bool
Flag to enable/disable inserter.
$name  : string
Name of the pattern.
$namespace  : string
Namespace of the pattern.
$source  : string
Source of the pattern.
$template_types  : array<string|int, string>
List of template types.
$viewport_width  : int
Viewport width.
get_name()  : string
Get name of the pattern.
get_namespace()  : string
Get namespace of the pattern.
get_properties()  : array<string|int, mixed>
Return properties of the pattern.
get_content()  : string
Get content.
get_description()  : string
Get description.
get_title()  : string
Get title.

Properties

Methods