Skip to content

Instantly share code, notes, and snippets.

@saltnpixels
Created May 30, 2019 15:30
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save saltnpixels/a7f106c5e7d1268d1b3772080dd0f238 to your computer and use it in GitHub Desktop.
Show child term checkboxes in WP properly even after selected
add_filter( 'wp_terms_checklist_args',
function ( $args ) {
$args['checked_ontop'] = false;
return $args;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment