Inventory_Presser_Customize_Dashboard::move_advanced_meta_boxes()

move_advanced_meta_boxes


Description Description

Rearranges meta boxes on the editor when editing vehicles


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class-customize-admin-dashboard.php

	function move_advanced_meta_boxes()
	{
		global $post, $wp_meta_boxes;
		$post_type = get_post_type( $post );

		if( INVP::POST_TYPE != $post_type )
		{
			return;
		}

		do_meta_boxes( get_current_screen( ), 'advanced', $post );
		unset( $wp_meta_boxes[get_post_type( $post )]['advanced'] );
	}