Does not work if acf is included as a package
-
First off, thanks for such a kick ass plugin. As a dev, tools like this certainly make life easier.
As per the title, when ACF is included as a bundle, instead of activated as a plugin, then this module fails to load and instead displays a message.
As a fix, i could suggest instead of your current code for checking for acf, that instead of:
if((is_plugin_active(‘advanced-custom-fields/acf.php’)) || (is_plugin_active(‘advanced-custom-fields-pro/acf.php’))):
add_action(‘admin_enqueue_scripts’, ‘hook_to_acf_installed’);
add_action(‘init’, ‘get_acfspv_options’);
else:you use this:
if((class_exists(‘acf’)):
add_action(‘admin_enqueue_scripts’, ‘hook_to_acf_installed’);
add_action(‘init’, ‘get_acfspv_options’);
else:This should fix the issue.
- The topic ‘Does not work if acf is included as a package’ is closed to new replies.