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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.