WooCommerce Change Default Catalog Sort Order
Use following code to change default catalog sort order.
Return value:
- date
- title
- price
- Copy code to your functions.php.
add_filter('woocommerce_default_catalog_orderby', 'custom_default_catalog_orderby'); function custom_default_catalog_orderby() { return 'date'; // Can also use title and price }
0 comments:
Post a Comment