Created
May 24, 2019 14:46
-
-
Save carmoreira/52d0c878e0c926efcf53c041bb58f320 to your computer and use it in GitHub Desktop.
Advisor Quiz: filter query args
This file contains hidden or 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
| add_filter( 'advq_query_args', 'my_custom_quiz_order' ); | |
| function my_custom_quiz_order( $args ){ | |
| $args['meta_key'] = 'quiz_order'; | |
| $args['orderby'] = 'meta_value_num'; | |
| $args['order'] = 'DESC'; | |
| return $args; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment