Removing "show_heading()" action from eg. rwmb_before_user-default ?

Support MB Frontend Submission Removing "show_heading()" action from eg. rwmb_before_user-default ?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #44479
    BomesBomes
    Participant

    Maybe I've been on the wrong path but using MB Frontend Submissions in combination with custom fields leads me to the point where I would like to hide the heading programmatically.

    So I wondered if it was possible to to something like "remove_action('rwmb_before_user-default', array('MBUM\MetaBox','show_heading'), 10)"?

    Maybe my its a bit too late but I cannot wrap my head around on how exactly I need to put it?

    #44484
    PeterPeter
    Moderator

    Hello Bomes,

    It is difficult to remove the callback by using PHP code. An easy way is to use the CSS code to hide the meta box heading, for example:

    .rwmb-meta-box[data-object-type=user] h2 {
        display: none;
    }
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.