wordpress/wp-content/themes/basic/themify/themify-builder/includes/components/module.php
/**
     * If there's not an options tab in Themify Custom Panel meta box already defined for this post type, like "Portfolio Options", add one.
     *
     * @since 2.3.8
     *
     * @param array $meta_boxes
     *
     * @return array
     */
If there's not an options tab in Themify Custom Panel meta box already defined for this post type, like "Portfolio Options", add one.



@return array
If there ' s not an options tab in Themify Custom Panel meta box already defined for this post type like " Portfolio Options " add one . @return array
public function cpt_meta_boxes( $meta_boxes = array() ) {
		Themify_Builder_Model::load_general_metabox(); 
        $meta_box_id = $this->slug . '-options';
        if ( ! in_array( $meta_box_id, wp_list_pluck( $meta_boxes, 'id' ), true ) ) {
            $options = $this->get_metabox();
			if ( ! empty( $options ) ) {
				$meta_boxes = array_merge( $meta_boxes, array(
					array(
						'name' => sprintf( __( '%s Options', 'themify' ), $this->name ),
						'id' => $meta_box_id,
						'options' => $options,
						'pages' => $this->slug
					)
				));
			}
        }
        return $meta_boxes;
    }
public function cpt_meta_boxes ( $ meta_boxes = array ( ) ) { Themify_Builder_Model :: load_general_metabox ( ) ; $ meta_box_id = $ this -> slug . '-options' ; if ( ! in_array ( $ meta_box_id , wp_list_pluck ( $ meta_boxes , 'id' ) , true ) ) { $ options = $ this -> get_metabox ( ) ; if ( ! empty ( $ options ) ) { $ meta_boxes = array_merge ( $ meta_boxes , array ( array ( 'name' => sprintf ( __ ( '%s Options' , 'themify' ) , $ this -> name ) , 'id' => $ meta_box_id , 'options' => $ options , 'pages' => $ this -> slug ) ) ) ; } } return $ meta_boxes ; }
If there's not an options tab in Themify Custom Panel meta box already defined for this post type, like "Portfolio Options", add one.
If there ' s not an options tab in Themify Custom Panel meta box already defined for this post type like " Portfolio Options " add one .
// setup common fields