Automattic\WooCommerce\Blocks\BlockTypes

ProductGalleryLargeImage::initializeprotectedWC 1.0

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: ProductGalleryLargeImage{}

No Hooks.

Returns

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->initialize();

ProductGalleryLargeImage::initialize() code WC 10.8.1

protected function initialize() {
	add_filter( 'block_type_metadata_settings', array( $this, 'add_block_type_metadata_settings' ), 10, 2 );
	parent::initialize();
}