Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
<?php
/**
* Background field demo.
*
* @package Meta Box
*/
add_filter( 'rwmb_meta_boxes', 'your_prefix_background_demo' );
function your_prefix_background_demo( $meta_boxes ) {
$meta_boxes[] = array(
'title' => __( 'Background demo', 'textdomain' ),
'fields' => array(
array(
'name' => __( 'Background', 'textdomain' ),
'id' => 'background_demo',
'type' => 'background',
// 'clone' => true,
),
),
);
return $meta_boxes;
}