Inheritance diagram for Undelete:
Collaboration diagram for Undelete:Public Member Functions | |
| action_plugin_activation ($file) | |
| filter_post_delete_allow ($result, $post) | |
| filter_post_actions ($actions, $post) | |
| filter_posts_manage_actions ($actions) | |
| filter_admin_entries_action ($status_msg, $action, $posts) | |
| action_auth_ajax_undelete () | |
| filter_plugin_config ($actions, $plugin_id) | |
| action_plugin_ui ($plugin_id, $action) | |
| updated_config ($ui) | |
| deleted_all ($ui) | |
| action_template_header () | |
| action_admin_header ($theme) | |
Undelete Class
This class provides undelete functionality for posts and comments, and provides a trashcan interface for restoring items.
Document methods
Provide an undo popup link like in gmail.
Definition at line 13 of file undelete.plugin.php.
| Undelete::action_plugin_activation | ( | $ | file | ) |
function action_plugin_activation adds the "deleted" status type to the poststatus table when this plugin is activated.
Definition at line 20 of file undelete.plugin.php.
| Undelete::action_template_header | ( | ) |
this method will inject some CSS into the <head> of the public facing theme so that deleted posts will show up differently
Definition at line 231 of file undelete.plugin.php.
| Undelete::filter_post_delete_allow | ( | $ | result, | |
| $ | post | |||
| ) |
This function is executed when the filter "before_post_delete" is called just before a post is to be deleted. This filter should return a boolean value to indicate whether the post should be deleted or not.
| Boolean | Whether to delete the post or not | |
| Post | The post object to potentially delete |
Definition at line 37 of file undelete.plugin.php.
1.7.1