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.
For anyone landing here through a search engine:
This still works as of 5.11.4.
According to the current documentation:
Any argument from the JavaScript registerBlockType() function may also be used.