Reverse comment order in WorDPress
<?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