admin_post_(action) action-hook . WP 2.6.0
Fires on an authenticated admin post request for the given action.
The dynamic portion of the hook name, $action, refers to the given request action.
Usage
add_action( 'admin_post_(action)', 'action_function_name_5947' ); function action_function_name_5947(){ // action... }
Changelog
Since 2.6.0 | Introduced. |
Where the hook is called
In file: /wp-admin/admin-post.php
wp-admin/admin-post.php 70
do_action( "admin_post_{$action}" );