Last active
December 2, 2023 18:48
-
-
Save softiconic/094e4d90b88e17d56a7ebbe3e5720cd6 to your computer and use it in GitHub Desktop.
The default setting for new products in WooCommerce.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('woocommerce_default_catalog_orderby', 'misha_default_catalog_orderby'); | |
function misha_default_catalog_orderby($sort_by) | |
{ | |
return 'date'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment