Inventory_Presser_Admin_Customize_Dashboard::add_meta_boxes_to_cpt()
add_meta_boxes_to_cpt
Contents
Description Description
Adds meta boxes to the editor when editing vehicles.
Return Return
(void)
Source Source
File: includes/admin/class-admin-customize-dashboard.php
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' ); }
Expand full source code Collapse full source code View on Github