Automattic\WooCommerce\Blocks\Templates

ArchiveProductTemplatesCompatibility::is_post_templateprivateWC 1.0

Check whether block is a Post template.

Method of the class: ArchiveProductTemplatesCompatibility{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->is_post_template( $block_name );
$block_name(string) (required)
Block name.

ArchiveProductTemplatesCompatibility::is_post_template() code WC 10.8.1

private function is_post_template( $block_name ) {
	return 'core/post-template' === $block_name;
}