26 Jul 2010Posted by admin
WordPress has many hooks that you as a plugin developer can take advantage of while developing a plugin. This page documents the API (Application Programming Interface) hooks available to WordPress plugin developers. This article is specifically about the API of “Hooks”, also known as “Filters” and “Actions”, that WordPress uses to set your plugin in motion.
Available “add_action” Hooks
Actions are (usually) triggered when the WordPress core calls do_action(). It can be used in the following way:
add_action ('hook_name', 'your_function_name', [priority] , [accepted_args]);
admin_footer
admin_head
admin_menu
comment_closed
comment_form
comment_id_not_found
comment_post
delete_comment
delete_post
edit_comment
...