admin_post_(action)
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)', 'wp_kama_admin_post_action' );
/**
* Function for `admin_post_(action)` action-hook.
*
* @return void
*/
function wp_kama_admin_post_action(){
// action...
}Changelog
| Since 2.6.0 | Introduced. |
Where the hook is called
In file: /wp-admin/admin-post.php
wp-admin/admin-post.php 82
do_action( "admin_post_{$action}" );