Currently the ACF plugin allows you to create a custom taxonimes and post types through the UI.
But it doesn't yet allow you to enable those in WP-GQL. I know it's planned to allow this, but in the meantime I'd like to auto enable all the ones that are made by ACF that also have show in rest API enabled (see screenshot).
For example, here is the code that allows you to set a pre-made taxonomy to show in GQL:
Currently the ACF plugin allows you to create a custom taxonimes and post types through the UI.
But it doesn't yet allow you to enable those in WP-GQL. I know it's planned to allow this, but in the meantime I'd like to auto enable all the ones that are made by ACF that also have
show in rest API enabled
(see screenshot).For example, here is the code that allows you to set a pre-made taxonomy to show in GQL:
So it would just be a matter of making that work for custom post types too, and to do some test for
show_in_rest
to be true also.