Skip to content

Instantly share code, notes, and snippets.

@andreiglingeanu
Created July 1, 2021 07:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreiglingeanu/588fdc98e76e25d11417533f5cdc4dd4 to your computer and use it in GitHub Desktop.
Save andreiglingeanu/588fdc98e76e25d11417533f5cdc4dd4 to your computer and use it in GitHub Desktop.
<?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