php - WordPress how to hide/disable ACF groups by domain/blog_id with acf-json
one text
I use ACF with local json files and multiple groups and also using multisite for Wordpress for some different projects of clients.
Some of the ACF groups are used for all Multisites, some of them are just for some single sites.
With acf/prepare_field it's only possible to hide all fields of the parent group, but is there any way to hide the whole group by Blog ID or Domain with a PHP filter?!
Enable/Disable is not an option, because it change the json file (Git change for the JSON). Otherwise i see only the way trough CSS or JS to hide/clean the Options area for some ACF Groups at all.
Any suggestions? Thanks! :-)
Source