Changeset 1318372
- Timestamp:
- 12/30/2015 07:51:37 AM (10 years ago)
- Location:
- keeping-points/trunk
- Files:
-
- 1 added
- 1 deleted
- 1 edited
-
keeping-points.php (modified) (1 diff)
-
keeping-points.zip (deleted)
-
uninstall.php (added)
Legend:
- Unmodified
- Added
- Removed
-
keeping-points/trunk/keeping-points.php
r1318336 r1318372 62 62 // Set-up Action and Filter Hooks 63 63 register_activation_hook(__FILE__, 'dl_keeping_points_add_defaults'); 64 register_uninstall_hook(__FILE__, 'dl_keeping_points_delete_plugin_options');65 64 add_action('admin_init', 'dl_keeping_points_init' ); 66 65 add_action('admin_menu', 'dl_keeping_points_add_options_page'); 67 66 add_filter( 'plugin_action_links', 'dl_keeping_points_plugin_action_links', 10, 2 ); 68 67 69 70 // --------------------------------------------------------------------------------------71 // THIS FUNCTION RUNS WHEN THE USER DEACTIVATES AND DELETES THE PLUGIN. IT SIMPLY DELETES72 // THE PLUGIN OPTIONS DB ENTRY (WHICH IS AN ARRAY STORING ALL THE PLUGIN OPTIONS).73 // --------------------------------------------------------------------------------------74 75 // Delete options table entries ONLY when plugin deactivated AND deleted76 function dl_keeping_points_delete_plugin_options() {77 delete_option('keeping_points_options');78 }79 68 80 69 // ------------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.