Custom Fields
Support Meta Box Builder Fieldset Text Defaults

  • This topic has 2 replies, 2 voices, and was last updated 4 weeks ago by Greg.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
  • #29344
    Long Nguyen


    It's not possible to add default values for the fieldset text. You can try to create two fields text in a group to set the default value and make them cloneable.


    Thanks. I see WP has filters for default content and some others, but not for meta. 🙁 A bit hacky, but I got the desired result with some JS:

    add_action( 'admin_footer', function() {
            var $input1 = $(' input[name="attributes[0][heading]"]');
            if(!$input1.length) return;
            var $clone1 = $input1.closest('.rwmb-clone');
            var $clones = $clone1.siblings('.rwmb-clone');
            $clones.first().find('input[name^="attributes"]:first').val('Team Member');
    } );
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.