Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('woocommerce_default_catalog_orderby', 'custom_default_catalog_orderby');
- function custom_default_catalog_orderby() {
- return 'date'; // Can also use title and price
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement