Skip to content
Snippets Groups Projects
Commit a85da680 authored by Lucas García's avatar Lucas García
Browse files

feat: check integration plugins with wpct dependency checker filters

parent 830e4b86
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
namespace WPCT_ERP_FORMS;
use Exception;
use WPCT_ERP_FORMS\WPCF7\Integration as Wpcf7Integration;
use WPCT_ERP_FORMS\GF\Integration as GFIntegration;
......@@ -49,10 +50,10 @@ class Plugin
return $dependencies;
});
if (is_plugin_active('wp-contact-form-7/wp-contact-form-7.php')) {
if (apply_filters(false, 'wp-contact-form-7/wp-contact-form-7.php')) {
require_once 'includes/integrations/wpcf7/class-integration.php';
$this->integrations['wpcf7'] = new Wpcf7Integration();
} else if (is_plugin_active('gravityforms/gravityforms.php')) {
} else if (apply_filters(false, 'gravityforms/gravityforms.php')) {
require_once 'includes/integrations/gf/class-integration.php';
$this->integrations['gf'] = new GFIntegration();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment