-
-
Save sc0ttkclark/f4f1b94d3a8bc7f00614acf5d80dbd2e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' ); | |
function your_prefix_register_meta_boxes( $meta_boxes ) { | |
$prefix = ''; | |
$meta_boxes[] = [ | |
'title' => esc_html__( 'Test metabox field group', 'online-generator' ), | |
'id' => 'test-metabox-field-group', | |
'context' => 'normal', | |
'fields' => [ | |
[ | |
'type' => 'text', | |
'name' => esc_html__( 'Text', 'online-generator' ), | |
'id' => 'test_field', | |
], | |
], | |
]; | |
return $meta_boxes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment