Custom Fields
Re-Envisioned
Support General Getting list of available fieldtypes and global fields of each type

This topic contains 1 reply, has 2 voices, and was last updated by  Anh Tran 9 months, 1 week ago.

  • Creator
    Topic
  • #11930
    Resolved
    badabingbreda
    Participant

    Hi,

    How can I get a list of registered fieldtypes using code? I’ve looked in the source but as far as I can find it can list the fields registered to a post-type or postid, but I need to list all various fieldtypes and subsequently the fieldnames that are registered across the different rwmb_meta_boxes.

    Not really necessary to drilldown into the groups, just top-level fieldnames.

    Can anyone help out?

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #11935

    Anh Tran
    Keymaster

    Hi,

    You can get all fields registered by parsing the meta boxes’ configurations. All of the meta boxes’ configurations can be access via rwmb_get_registry( 'meta_box' )->all().

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.