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.9.3.3

apply_filters('woocommerce_product_related_posts_shuffle') is found 1 times:

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