Created
July 1, 2021 07:13
-
-
Save andreiglingeanu/588fdc98e76e25d11417533f5cdc4dd4 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__( 'Untitled Field Group', 'online-generator' ), | |
'id' => 'untitled', | |
'post_types' => ['post', 'page'], | |
'context' => 'normal', | |
'fields' => [ | |
[ | |
'type' => 'text', | |
'name' => esc_html__( 'Size', 'online-generator' ), | |
'id' => $prefix . 'text_gurpy2jjvdoaazxca', | |
], | |
[ | |
'type' => 'text', | |
'name' => esc_html__( 'Kind', 'online-generator' ), | |
'id' => $prefix . 'text_gurpy2jjvdo', | |
], | |
], | |
]; | |
return $meta_boxes; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment