woocommerce_product_details_hooked_blocks filter-hookWC 10.0.0

Filter the blocks that are hooked into the Product Details block.

Usage

add_filter( 'woocommerce_product_details_hooked_blocks', 'wp_kama_woocommerce_product_details_hooked_blocks_filter' );

/**
 * Function for `woocommerce_product_details_hooked_blocks` filter-hook.
 * 
 * @param {array} $hooked_blocks The blocks that are hooked into the Product Details block.
 *
 * @return {array}
 */
function wp_kama_woocommerce_product_details_hooked_blocks_filter( $hooked_blocks ){

	// filter...
	return $hooked_blocks;
}
$hooked_blocks({array})
The blocks that are hooked into the Product Details block.

Changelog

Since 10.0.0 Introduced.

Where the hook is called

ProductDetails::initialize()
woocommerce_product_details_hooked_blocks
woocommerce/src/Blocks/BlockTypes/ProductDetails.php 37
$hooked_blocks = apply_filters( 'woocommerce_product_details_hooked_blocks', [] );

Where the hook is used in WooCommerce

Usage not found.