Skip to content

Instantly share code, notes, and snippets.

@jayseventwo
Created September 23, 2014 23:11
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 jayseventwo/25088e31936490f8735c to your computer and use it in GitHub Desktop.
Save jayseventwo/25088e31936490f8735c to your computer and use it in GitHub Desktop.
Stope categories going out of order in WP pages/posts admin
/* ----------------------------------- stop categories going out of order in WP page/poasts admin ---------------*/
function taxonomy_checklist_checked_ontop_filter ($args)
{
$args['checked_ontop'] = false;
return $args;
}
add_filter('wp_terms_checklist_args','taxonomy_checklist_checked_ontop_filter');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment