admin_post_nopriv_(action)
Fires on a non-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_nopriv_(action)', 'wp_kama_admin_post_nopriv_action' );
/**
* Function for `admin_post_nopriv_(action)` action-hook.
*
* @return void
*/
function wp_kama_admin_post_nopriv_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 58
do_action( "admin_post_nopriv_{$action}" );