Inventory_Presser_Classic_Editor::move_tags_meta_box()

Remove and re-add the “Tags” meta box so it ends up at the bottom for our CPT

On This Page


Return Return

(void)


Top ↑

Source Source

File: includes/integrations/class-classic-editor.php

	public function move_tags_meta_box() {
		global $wp_meta_boxes;
		unset( $wp_meta_boxes[ INVP::POST_TYPE ]['side']['core']['tagsdiv-post_tag'] );
		add_meta_box(
			'tagsdiv-post_tag',
			'Tags',
			'post_tags_meta_box',
			INVP::POST_TYPE,
			'side',
			'core',
			array( 'taxonomy' => 'post_tag' )
		);
	}