Custom Fields
Support MB User Meta User Meta Meta Boxes have Title and Duplicate Header 'Description'

  • Creator
  • #24218
    Resolved pluginoven

    The user meta plugin is creating a Title and Header for every metabox.
    This is due to the following in mb-user-meta/src/MetaBox.php

    add_action( "rwmb_before_{$this->meta_box['id']}", array( $this, 'show_heading' ) );
    public function show_heading() {
            echo '<h2>', esc_html( $this->meta_box['title'] ), '</h2>';

    I would like to be able to have the Title remain the title, but change this h2 heading to be more descriptive rather than just a duplicate of the title.

    Would be nice if there was a hook or filter for this, or at least to first check if there is a $this->meta_box['desc'] defined.

    I will make the change for my need, but would be happy to submit a pull request that made this annoying feature... less annoying.


Viewing 1 replies (of 1 total)
  • Author
  • #24235
    Long Nguyen


    Thank you for your idea.

    If you want to add the description for the user meta, please use that action to add the desc. Just like:

    add_action( 'rwmb_before_{$metabox_id}', function() {
        echo '<p>Descrition for User Meta</p>';
    }, 20 );

    And remove the Meta box title, you can use this trick: leave the meta box title with some spaces 🙂

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.