PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Detect Gravity Forms?

  1. Jive Software
    Member

    What is the best way to Detect Gravity Forms from another plugin...
    and to detect if gravity forms is active?

    Steve

    Posted 6 years ago on Friday October 5, 2012 | Permalink
  2. If you're doing it on an admin page, you can use the is_plugin_active function:

    [php]
    if ( is_plugin_active( 'gravityforms/gravityforms.php' ) ) {
        //plugin is activated, do something
    }

    If you're not in the admin when you need to check, I think you can check for the existence of the GFCommon class:

    [php]
    if ( class_exists( 'GFCommon' ) ) {
        //plugin is activated, do something
    }

    One of those two should work for you.

    Posted 6 years ago on Friday October 5, 2012 | Permalink