Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.