Automattic\WooCommerce\Blocks\BlockTypes
ProductTemplate::initialize()
Initialize this block type.
- Hook into WP lifecycle.
- Register the block with WordPress.
- Hook into pre_render_block to update the query.
Method of the class: ProductTemplate{}
No Hooks.
Return
null
. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->initialize();
ProductTemplate::initialize() ProductTemplate::initialize code WC 9.4.2
protected function initialize() { add_filter( 'block_type_metadata_settings', array( $this, 'add_block_type_metadata_settings' ), 10, 2 ); parent::initialize(); }