Getting list of available fieldtypes and global fields of each type

Support General Getting list of available fieldtypes and global fields of each typeResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11930
    badabingbredabadabingbreda
    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?

    #11935
    Anh TranAnh 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 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.