woocommerce_product_related_posts_shuffle
Использование
add_filter( 'woocommerce_product_related_posts_shuffle', 'wp_kama_woocommerce_product_related_posts_shuffle_filter' ); /** * Function for `woocommerce_product_related_posts_shuffle` filter-hook. * * @param $true * * @return */ function wp_kama_woocommerce_product_related_posts_shuffle_filter( $true ){ // filter... return $true; }
- $true
- -
Где вызывается хук
woocommerce_product_related_posts_shuffle
woocommerce/includes/wc-product-functions.php 1032
if ( apply_filters( 'woocommerce_product_related_posts_shuffle', true ) ) {