Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action ('add_meta_boxes', 'mp_mbe_create' );
- function mp_mbe_create() {
- add_meta_box (
- 'mp-meta',
- 'Form Fields',
- 'mp_mbe_function',
- 'movie_reviews',
- 'normal',
- 'high'
- );
- }
- $mpprefix = 'Custom_';
- $mp_custom_meta_fields = array(
- array(
- 'label' => 'Add New Form',
- 'desc' => 'Add new fields to your form here',
- 'id' => $mpprefix.'repeatable',
- 'type' => 'repeatable',
- 'options' => array(
- array (
- 'label' => 'Text Box',
- 'value' => 'text',
- 'type' => 'text',
- ),
- array(
- 'label' => 'Text Area',
- 'value' => 'textarea',
- 'type' => 'textarea'
- ),
- );
- function mp_mbe_function() {
- global $mp_custom_meta_fields, $post;
- // displays the actual form fields
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement