Created
November 27, 2017 19:56
-
-
Save WPprodigy/eb1c98874f9da269b452840f2cde44c5 to your computer and use it in GitHub Desktop.
Customize storefront featured product's arguments.
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( 'storefront_featured_products_args', 'wc_ninja_edit_sf_featured_products_args', 10 ); | |
function wc_ninja_edit_sf_featured_products_args( $args ) { | |
$args['orderby'] = "ID"; | |
$args['order'] = "asc"; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment