Created
January 17, 2020 18:30
-
-
Save someguy9/2886d14a3685d6b19598fbfb120e36da to your computer and use it in GitHub Desktop.
Reverse comment order in WorDPress
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
<?php | |
//Reverse comment order | |
function smartwp_reverse_comment_order( $comments ) { | |
return array_reverse( $comments ); | |
} | |
add_filter ('comments_array', 'smartwp_reverse_comment_order'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment