Inventory_Presser_Taxonomies::meta_box_html_type( WP_Post $post )

Outputs HTML that renders a meta box for the type taxonomy


Parameters Parameters

$post

(WP_Post) (Required) Current post object.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/class-taxonomies.php

	public static function meta_box_html_type( $post ) {
		$taxonomy = 'type';
		$html     = sprintf(
			'%1$s <a href="edit-tags.php?taxonomy=%2$s&post_type=%3$s">%4$s</a>',
			self::taxonomy_meta_box_html( $taxonomy, apply_filters( 'invp_prefix_meta_key', $taxonomy ), $post ),
			esc_attr( $taxonomy ),
			esc_attr( INVP::POST_TYPE ),
			esc_html__( 'Manage', 'inventory-presser' )
		);
		// add an onchange attribute to the select.
		$html = str_replace( '<select', '<select onchange="invp_vehicle_type_changed( this.value );" ', $html );
		echo $html;
	}