Get all field type (Array of all types)

Support MB Builder Get all field type (Array of all types)Resolved

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #41579
    KevinKevin
    Participant

    Hi everyone @mb.io

    I was wondering if there's any way to get all the field types via a function.
    I've been playing around with 'mbb_fields_type', trying to return the $field_types array, but it only show me the custom fields types i've created + group + tab.

    Any clue ?

    Thanks for your help, have a nice day,
    Kevin

    #41594
    PeterPeter
    Moderator

    Hello Kevin,

    You might need to use the function rwmb_get_registry() to get all fields. Please read more here https://docs.metabox.io/functions/rwmb-get-registry/

    #42650
    KevinKevin
    Participant

    Hello Peter,

    i'm aware of that functions, but it only return an array of fields that have been set in a metabox. what i wanted was to have all fields type existing in metabox, like the listing you have in MB Builder.

    BTW, using the mbb_field_types filter, i was able to get what i wanted.

    Many thanks for your help !
    Have a nice day,

    KL

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.