Automattic\WooCommerce\Internal\EmailEditor\WCTransactionalEmails
WCEmailTemplateSelectiveApplier::is_structural_block
Whether the given post-alias-normalized block name is a structural wrapper (matches the same set RSM-142 uses for nest detection).
Method of the class: WCEmailTemplateSelectiveApplier{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = WCEmailTemplateSelectiveApplier::is_structural_block( $name ): bool;
- $name(string) (required)
- Normalized block name (e.g.
core/group).
WCEmailTemplateSelectiveApplier::is_structural_block() WCEmailTemplateSelectiveApplier::is structural block code WC 10.9.1
private static function is_structural_block( string $name ): bool {
return in_array(
$name,
array( 'core/group', 'core/columns', 'core/column', 'core/row' ),
true
);
}