• 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.

    • This topic was modified 8 years, 2 months ago by lagdonkey.
Viewing 1 replies (of 1 total)
  • Plugin Author samjco

    (@samjco)

    Oh I see!
    Some other plugins make use of ACF huh?

    I will add this in. Thanks.. Want to make sure the Class works for both ACF and ACF PRO

Viewing 1 replies (of 1 total)
  • The topic ‘Does not work if acf is included as a package’ is closed to new replies.