register_deactivation_hook [ WordPress Function ]
| Parameters: |
|
| Defined at: |
|
Set the deactivation hook for a plugin.
When a plugin is deactivated, the action 'deactivate_PLUGINNAME' hook is deactivated. In the name of this hook, PLUGINNAME is replaced with the name of the plugin, including the optional subdirectory. For example, when the plugin is located in wp-content/plugin/sampleplugin/sample.php, then the name of this hook will become 'activate_sampleplugin/sample.php'.
When the plugin consists of only one file and is (as by default) located at wp-content/plugin/sample.php the name of this hook will be 'activate_sample.php'.
Examples [ wp-snippets.com ]
Google Arama Sonuçlarý
- Function Reference/register deactivation hook « WordPress Codex
Description. The function register_deactivation_hook (introduced in WordPress 2.0) registers a plugin function to be run when the plugin is deactivated.
codex.wordpress.org - register_activation_hook / register_deactivation_hook - WordPress
So ... I just don't understand what's happening here. I'm written a class for my plugin, and register_deactivation_hook works, but register_activation_hook doesn't ...
wordpress.org - Question regarding register_deactivation_hook in Wordpress - Stack ...
Following some examples, I have a function that gets triggered on the ... This is a bad idea!!! If you manually update a plug-in via PHP (some ...
stackoverflow.com - register_deactivation_hook() WordPress function reference ...
register_deactivation_hook(). Set the deactivation hook for a plugin. When a plugin is deactivated, the action 'deactivate_PLUGINNAME' hook is deactivated.
queryposts.com