Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' );
- function your_prefix_register_meta_boxes( $meta_boxes ) {
- $meta_boxes[] = array (
- 'title' => 'Listing Info',
- 'id' => 'listing-info',
- 'post_types' => array(
- 0 => 'listing',
- ),
- 'context' => 'normal',
- 'priority' => 'high',
- 'fields' => array(
- array (
- 'id' => 'text_2',
- 'type' => 'text',
- 'name' => 'Text Field',
- 'tab' => 'label-1',
- ),
- ),
- 'tab_style' => 'default',
- 'tab_wrapper' => true,
- 'tabs' => array(
- 'label-1' => array(
- 'label' => 'Tab',
- 'icon' => 'dashicons-admin-generic',
- ),
- ),
- );
- return $meta_boxes;
- }
Add Comment
Please, Sign In to add comment