update: register Product Template block with skip_inner_blocks
This commit is contained in:
parent
d1545dbba5
commit
88b076bde3
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue