update: register Product Template block with skip_inner_blocks

This commit is contained in:
Tung Du 2024-07-25 13:17:16 +07:00
parent d1545dbba5
commit 88b076bde3
1 changed files with 10 additions and 0 deletions

View File

@ -26,6 +26,16 @@ class ProductTemplate extends AbstractBlock {
return null;
}
/**
* Get extra block settings. Some protected properties are always overriden in
* AbstractBlock::register_block_type().
*
* @return array
*/
protected function get_extra_block_settings() {
return array( 'skip_inner_blocks' => true );
}
/**
* Render the block.
*