Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830
Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830
Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Add_Twilio_Integration::plugin_active( $status, $code )
Only load this integration and its triggers and actions if the related plugin is active
Contents
Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830
Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Warning: foreach() argument must be of type array|object, string given in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 830
Warning: Array to string conversion in /home/customer/www/docs.automatorplugin.com/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 825
Parameters Parameters
- $status
(Required)
- $code
(Required)
Return Return
(bool)
Source Source
File: src/integrations/twilio/add-twilio-integration.php
public function plugin_active( $status, $code ) { $is_enabled = true; $directories = array( 'wp-content', 'plugins', 'uncanny-automator-pro', 'src', 'integrations', 'twilio', 'helpers', ); $pro_integration_helpers_path = ABSPATH . implode( DIRECTORY_SEPARATOR, $directories ) . '/twilio-pro-helpers.php'; // If the helper file exists in pro it means, the pro version still contains the old helper file. if ( file_exists( $pro_integration_helpers_path ) && is_automator_pro_active() ) { $is_enabled = false; } return $is_enabled; }
Expand full source code Collapse full source code View on Github