I may not have been clear on this one. The issue is not with the core plugin, it’s with the addons, specifically the gallery and the options page.
If you only include the base plugin all is well because it’s one big class and before the class you’ve added this check:
if( !class_exists('acf') ):
If I want to include the repeater field addon all is well again because I include the acf-repeater.php file which has this check:
if( !function_exists('acf_register_repeater_field') ):
However, the gallery and the options page addon does not have this check so it can not be included with a simple include.
I hope that makes it a bit clearer, let me know if I’m just being thick 🙂
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!
The ACF site is currently experiencing some issues.— Advanced Custom Fields (@wp_acf) September 29, 2022
We apologize for the inconvenience and we are working hard to get it back up and running as soon as possible.
© 2022 Advanced Custom Fields.