Get products randomly or not for widgets and shortcodes.
Parameters
- random – get products randomly (true or false).
Usage
<?php
function change_products_of_day_widget_random ( $random ) {
//your code here
return $random;
}
add_filter( 'products_of_day_widget_random', 'change_products_of_day_widget_random' );
?>