Function to get all fields of a specific Meta Box

Support General Function to get all fields of a specific Meta Box

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13118
    dev@xbrain.it[email protected]
    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

    #13125
    Anh TranAnh Tran
    Keymaster

    Please use this function:

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