Inventory_Presser_Classic_Editor::add_meta_boxes_to_cpt()

Adds meta boxes to the editor when editing vehicles.

On This Page


Return Return

(void)


Top ↑

Source Source

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

	public function add_meta_boxes_to_cpt() {
		// Add a meta box to the New/Edit post page.
		add_meta_box( 'vehicle-meta', 'Attributes', array( $this, 'meta_box_html_vehicle' ), INVP::POST_TYPE, 'normal', 'high' );

		// And another for prices.
		add_meta_box( 'prices-meta', 'Prices', array( $this, 'meta_box_html_prices' ), INVP::POST_TYPE, 'normal', 'high' );

		// Add another meta box to the New/Edit post page.
		add_meta_box( 'options-meta', 'Optional equipment', array( $this, 'meta_box_html_options' ), INVP::POST_TYPE, 'normal', 'high' );

		// Add a meta box to the side column for a featured vehicle checkbox.
		add_meta_box( 'featured', 'Featured Vehicle', array( $this, 'meta_box_html_featured' ), INVP::POST_TYPE, 'side', 'low' );
	}