Created
November 7, 2017 03:41
-
-
Save RiaanKnoetze/6db486e3e506b32e6ce9a7579fc78b5a to your computer and use it in GitHub Desktop.
Change the orderby parameter for the Featured Products section in Storefront for 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('storefront_featured_products_args','custom_storefront_featured_product_order' ); | |
// Featured Products Order | |
function custom_storefront_featured_product_order( $args ) { | |
$args['orderby'] = 'title; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment