Created
May 5, 2017 17:45
-
-
Save Shelob9/a8c644e09622e9df6e92d037b4eabf37 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Check if Caldera Forms is active | |
*/ | |
if( defined( 'CFCORE_VER' ){ | |
//Caldera Forms is active | |
}else{ | |
//Caldera Forms is not active | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'caldera_forms_includes_complete', 'my_addon_init' ); | |
function my_addon_init(){ | |
//start your Caldera Form add-on code here, since Caldera Forms is loaded and Caldera Forms Autoloader is inititialized | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment