Created
July 30, 2014 13:04
-
-
Save roykho/39c1d1a9ee992bef3629 to your computer and use it in GitHub Desktop.
WooCommerce: How to reverse product review comments order
This file contains 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_product_review_list_args', 'wc_reverse_product_reviews' ); | |
function wc_reverse_product_reviews( $args ) { | |
$args['reverse_top_level'] = true; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment