Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

tax additional fields 1

class Taxomonmies_Additional_Fields {

	public function __construct() {

		if ( is_admin() ) {
			add_action( 'load-post.php',     array( $this, 'init_metabox' ) );
			add_action( 'load-post-new.php', array( $this, 'init_metabox' ) );
		}

	}

	public function init_metabox() {

		add_action( 'add_meta_boxes',        array( $this, 'add_metabox' )         );
		add_action( 'save_post',             array( $this, 'save_metabox' ), 10, 2 );

	}

	public function add_metabox() {

		add_meta_box(
			'custom_tax_add_fields',
			__( 'Taxonomy Additional Fields', 'text_domain' ),
			array( $this, 'render_metabox_custom_tax_add_fields' ),
			array( 'vehicle-type', 'makes-models', 'makes-models-body', 'emissions', 'interior-extra-features', 'drive', 'exterior-extra-feature', 'exterior-colour', 'transmission', 'fuel-type' ),
			'advanced',
			'default'
		);

	}

	public function render_metabox_custom_tax_add_fields( $post ) {

	}

	public function save_metabox( $post_id, $post ) {

	}

}

new Taxomonmies_Additional_Fields;