taxonomy不置顶。
1. change source code
$checked_ontop = (array_key_exists('checked_ontop', $parsed_args)) ? esc_attr( $parsed_args['checked_ontop'] ) : true; wp_terms_checklist( $post->ID, array( 'taxonomy' => $tax_name, 'popular_cats' => $popular_ids, 'checked_ontop' => $checked_ontop ) );
wp-admin/includes/meta-boxes.php line: 650
checked_ontop,是否把已点选的taxonomy置顶。
2. change register on post-type
add_action('post_categories_meta_box_v2', [$this, 'post_categories_meta_box_v2'] ); public function post_categories_meta_box_v2 ( $post, $box ) { $box['args']['checked_ontop'] = false; return post_categories_meta_box( $post, $box ); }
add checked_notop param to func register()