We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e870a8 commit af99281Copy full SHA for af99281
1 file changed
app/Plugin.php
@@ -64,7 +64,11 @@ public function activate() {
64
*/
65
public function init() {
66
67
- add_action( 'after_setup_theme', array( 'Carbon_Fields\\Carbon_Fields', 'boot' ) );
+ if( class_exists( 'Carbon_Fields\\Carbon_Fields' ) ) {
68
+ add_action( 'after_setup_theme', array( 'Carbon_Fields\\Carbon_Fields', 'boot' ) );
69
+ } else {
70
+ new TGMPA();
71
+ }
72
73
if( $this->verify_dependencies( 'carbon_fields' ) === true ) {
74
add_action( 'carbon_fields_loaded', array( $this, 'load_plugin' ));
0 commit comments