Created
January 4, 2021 10:03
-
-
Save yousufansa/34332a2f46a85379b067d9f00b887d2b to your computer and use it in GitHub Desktop.
Front Jobs - Post A Job Term Select Custom Ordering
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
if ( ! function_exists( 'job_manager_term_dropdown_field_custom_orderby_args' ) ) { | |
function job_manager_term_dropdown_field_custom_orderby_args( $args ) { | |
$args['orderby'] = 'slug'; | |
return $args; | |
} | |
} | |
add_filter( 'job_manager_term_multiselect_field_args', 'job_manager_term_dropdown_field_custom_orderby_args' ); | |
add_filter( 'job_manager_term_select_field_wp_dropdown_categories_args', 'job_manager_term_dropdown_field_custom_orderby_args' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment