Skip to content

Instantly share code, notes, and snippets.

@tripflex
Created January 9, 2016 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tripflex/825262ee59e56c78c9a5 to your computer and use it in GitHub Desktop.
Save tripflex/825262ee59e56c78c9a5 to your computer and use it in GitHub Desktop.
Set term-multiselect field max select options for WP Job Manager (place this in your theme's functions.php file)
<?php
add_filter( 'job_manager_chosen_multiselect_args', 'set_term_multiselect_max_opts' );
function set_term_multiselect_max_opts( $args ){
$args['max_selected_options'] = 5;
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment