Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
2 contributors

Users who have contributed to this file

@anhtu261091 @rilwis
23 lines (21 sloc) 462 Bytes
<?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;
}
You can’t perform that action at this time.