woocommerce_product_details_hooked_blocks
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
woocommerce_product_details_hooked_blocks
woocommerce/src/Blocks/BlockTypes/ProductDetails.php 37
$hooked_blocks = apply_filters( 'woocommerce_product_details_hooked_blocks', [] );