Custom Fields
Re-Envisioned
Support General Function to get all fields of a specific Meta Box

  • Creator
    Topic
  • #13118
    dev@xbrain.it
    Participant

    Hi

    is there a function to get all the fields id of a specific meta box, may be passing meta box id?

    we didn’t find it in docs

    thanks in advance

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #13125
    Anh Tran
    Keymaster

    Please use this function:

    $meta_box = rwmb_get_registry( 'meta_box' )->get( 'YOUR_META_BOX_ID' );
    $fields = $meta_box->fields;
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.