Home Forums Add-ons Options Page Get a list of defined Option Pages? Reply To: Get a list of defined Option Pages?

  • Thanks! Was looking for exactly that.

    My use case is an automatic generation of field groups based on registered option pages.
    I’m going to ‘connect’ a Taxonomy to an attachment and needed a UX-friendly way of doing so. So I’ll be making a sort of link table in an option page. Having a Taxonomy dropdown, and a file-field or a media selection field.

    Anyways, I was bummed to find out that acf_get_options_pages() is undocumented and at the moment, I’m not sure if $GLOBALS['acf_options_pages'] is always there. Either way this was exactly what I needed and seems to work flawlessly in ACF Pro 5.11.4.