woocommerce_layout_template_after_instantiation action-hookWC 8.6.0

Fires after a layout template is instantiated.

Usage

add_action( 'woocommerce_layout_template_after_instantiation', 'wp_kama_woocommerce_layout_template_after_instantiation_action', 10, 3 );

/**
 * Function for `woocommerce_layout_template_after_instantiation` action-hook.
 * 
 * @param string                 $layout_template_id   Layout template ID.
 * @param string                 $layout_template_area Layout template area.
 * @param BlockTemplateInterface $layout_template      Layout template instance.
 *
 * @return void
 */
function wp_kama_woocommerce_layout_template_after_instantiation_action( $layout_template_id, $layout_template_area, $layout_template ){

	// action...
}
$layout_template_id(string)
Layout template ID.
$layout_template_area(string)
Layout template area.
$layout_template(BlockTemplateInterface)
Layout template instance.

Changelog

Since 8.6.0 Introduced.

Where the hook is called

LayoutTemplateRegistry::get_layout_template_instance()
woocommerce_layout_template_after_instantiation
woocommerce/src/LayoutTemplates/LayoutTemplateRegistry.php 159
do_action( 'woocommerce_layout_template_after_instantiation', $layout_template_info['id'], $layout_template_info['area'], $layout_template_instance );

Where the hook is used in WooCommerce

Usage not found.