Created
July 12, 2022 02:04
-
-
Save zackkatz/45f9ae8782de1d47bcb6f06d824f785f to your computer and use it in GitHub Desktop.
GravityView - Reverse the order of Entry Notes
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 | |
add_filter( 'gravityview/entry_notes/get_notes', function( $notes ) { | |
if ( ! $notes ) { | |
return $notes; | |
} | |
return array_reverse( $notes, true ); | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment