Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' );
- function your_prefix_register_meta_boxes( $meta_boxes ) {
- $meta_boxes[] = array (
- 'id' => 'work-settings-metabox',
- 'title' => 'work settings Metabox',
- 'pages' => array (
- 'work',
- ),
- 'context' => 'normal',
- 'priority' => 'high',
- 'autosave' => false,
- 'fields' => array (
- array (
- 'id' => 'work_image_group',
- 'type' => 'group',
- 'name' => 'Work Image Group',
- 'fields' => array (
- array (
- 'id' => 'image',
- 'type' => 'image_advanced',
- 'name' => 'image',
- 'max_file_uploads' => 1,
- ),
- array (
- 'id' => 'image_state',
- 'name' => 'Image State',
- 'type' => 'radio',
- 'options' => array (
- 'approved' => 'Approved',
- 'disapproved' => 'Disapproved',
- ),
- ),
- ),
- 'clone' => 1,
- ),
- ),
- );
- return $meta_boxes;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement