Created
August 19, 2014 01:42
-
-
Save chuckreynolds/1f5e6d3a60046ac2f97f to your computer and use it in GitHub Desktop.
Remove the default WordPress behavior of displaying checked categories all at the top. This will keep the nested structure even when checked.
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( 'wp_terms_checklist_args', 'ryno_wp_terms_checklist_args', 1, 2 ); | |
function ryno_wp_terms_checklist_args( $args, $post_id ) { | |
$args[ 'checked_ontop' ] = false; | |
return $args; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment