What is the best way to Detect Gravity Forms from another plugin...
and to detect if gravity forms is active?
Steve
What is the best way to Detect Gravity Forms from another plugin...
and to detect if gravity forms is active?
Steve
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.