Created
March 10, 2022 10:47
-
-
Save Firsh/72646e130be40dffadf1a8fe55847233 to your computer and use it in GitHub Desktop.
Reverse menu order in JIGs
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('jig_media_library_query_args', 'jig_reverse_menu_order', 10, 2); | |
function jig_reverse_menu_order($args, $atts) | |
{ | |
$args['orderby'] = 'menu_order'; | |
$args['order'] = 'DESC'; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment