- Bugfix: uninstall function to really remove all settings done in the settings page
- Bugfix: load default settings after plugin is installed git-svn-id: https://plugins.svn.wordpress.org/footnotes/trunk@919395 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
a42f55165a
commit
ca2c42eeaa
5 changed files with 29 additions and 46 deletions
|
@ -67,6 +67,14 @@ if (!function_exists('is_admin')) {
|
|||
exit();
|
||||
}
|
||||
|
||||
/* register hook for activating the plugin */
|
||||
register_activation_hook(__FILE__, array('Class_Footnotes', 'activate'));
|
||||
/* register hook for deactivating the plugin */
|
||||
register_deactivation_hook(__FILE__, array('Class_Footnotes', 'deactivate'));
|
||||
/* register hook for uninstalling the plugin */
|
||||
register_uninstall_hook(__FILE__, array('Class_Footnotes', 'uninstall'));
|
||||
|
||||
|
||||
/* action to locate language and load the wordpress-specific language file */
|
||||
add_action('plugins_loaded', 'footnotes_load_language');
|
||||
|
||||
|
|
Reference in a new issue