Is there a way to use ACF in a custom plugin, without duplicating ACF into my custom plugin? It’s already installed at the WordPress level and being used across the site for other things.
Here is what I need to do:
My custom plugin is all relating to a specific CPT, Services. On activation, the custom plugin creates a page template for the Services landing page, generates some Services taxonomies, and generates ACF fields only used on the Services landing page or Services single posts.
I’d like to store all custom fields (JSON or PHP) associated with this CPT in the plugin. I need to do this in a way that it won’t interfere with creating new or editing existing fields (saved as PHP) used on the rest of the site.
I’ve tried looking online but I can’t see if this is possible.
The only way to do that is to inform people that the ACF plugin is required. There are things that you can add to your plugin that will automatically install other plugins if they are not installed so that they can be updated as other plugins.