GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
This class is responsible for handling plugin activation and deactivation hooks. More...
Public Member Functions | |
fire_activation_hook () | |
Runs on plugin activation. More... | |
get_plugin_activations () | |
Returns activated plugins. More... | |
register_activation_hook ( $plugin_file) | |
Registers activation hook for the plugin. More... | |
register_deactivation_hook ( $plugin_file) | |
Registers deactivation hook for the plugin. More... | |
register_hooks ( $plugin_file) | |
Registers activation and deactivation hooks for the plugin. More... | |
save_plugin_activations ( $plugin_activations) | |
Saves activated plugins. More... | |
Data Fields | |
const | DB_OPTION_NAME = '_gk_foundation_plugin_activations' |
This class is responsible for handling plugin activation and deactivation hooks.
Definition at line 14 of file PluginActivationHandler.php.
fire_activation_hook | ( | ) |
Runs on plugin activation.
This method can be called inside init
and other WP hooks.
Definition at line 128 of file PluginActivationHandler.php.
References GV\$i, PluginActivationHandler\get_plugin_activations(), and PluginActivationHandler\save_plugin_activations().
get_plugin_activations | ( | ) |
Returns activated plugins.
Definition at line 115 of file PluginActivationHandler.php.
Referenced by PluginActivationHandler\fire_activation_hook(), and PluginActivationHandler\register_activation_hook().
register_activation_hook | ( | $plugin_file | ) |
Registers activation hook for the plugin.
Note: this method should not be called inside a hook such as init
, plugins_loaded
, etc.
string | $plugin_file | The filename of the plugin including the path. |
Definition at line 48 of file PluginActivationHandler.php.
References PluginActivationHandler\get_plugin_activations(), and PluginActivationHandler\save_plugin_activations().
Referenced by PluginActivationHandler\register_hooks().
register_deactivation_hook | ( | $plugin_file | ) |
Registers deactivation hook for the plugin.
Note: this method should not be called inside a hook such as init
, plugins_loaded
, etc.
string | $plugin_file | The filename of the plugin including the path. |
Definition at line 79 of file PluginActivationHandler.php.
Referenced by PluginActivationHandler\register_hooks().
register_hooks | ( | $plugin_file | ) |
Registers activation and deactivation hooks for the plugin.
Note: this method should not be called inside a hook such as init
, plugins_loaded
, etc.
string | $plugin_file | The filename of the plugin including the path. |
Definition at line 30 of file PluginActivationHandler.php.
References PluginActivationHandler\register_activation_hook(), and PluginActivationHandler\register_deactivation_hook().
save_plugin_activations | ( | $plugin_activations | ) |
Saves activated plugins.
array | $plugin_activations | Activated plugins. |
Definition at line 100 of file PluginActivationHandler.php.
Referenced by PluginActivationHandler\fire_activation_hook(), and PluginActivationHandler\register_activation_hook().
const DB_OPTION_NAME = '_gk_foundation_plugin_activations' |
Definition at line 15 of file PluginActivationHandler.php.