Fr_Tokens::plugin_active( bool $status, string $plugin )
Only load this integration and its triggers and actions if the related plugin is active
Contents
Parameters Parameters
- $status
-
(bool) (Required) status of plugin.
- $plugin
-
(string) (Required) plugin code.
Return Return
(bool)
Source Source
File: src/integrations/forminator/tokens/fr-tokens.php
public function plugin_active( $status, $plugin ) { if ( self::$integration === $plugin ) { if ( class_exists( 'Forminator' ) ) { $status = true; } else { $status = false; } } return $status; }
Expand full source code Collapse full source code View on Github