woocommerce_product_related_posts_shuffle

woocommerce_product_related_posts_shuffle

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_product_related_posts_shuffle') is found 1 times:

  • /includes/wc-product-functions.php line 954
    			'excluded_ids' => $exclude_ids,
    		)
    	);
    
    	if ( apply_filters( 'woocommerce_product_related_posts_shuffle', true ) ) {
    		shuffle( $related_posts );
    	}
    
    	return array_slice( $related_posts, 0, $limit );
    }