I would like to load ACF fields for custom post types based on a set of conditions and NOT use Custom Location Rules. A brief use case / rationale:
CPT Aexists AND
Theme Option Yis 1, then show
Field Group 1on
CPT Ain wp-admin
- I want to set rules programmatically because I don't want users to be able to override/mess up location rules via the field group options.
I've been poking around and according to some threads, it seems like hooking into
acf/get_field_group is going to be the way to go, however it isn't documented.
Is there any way I can do a filter hook to override a field group's location rules based on programmatic conditions?