admin_post_(action) action-hookWP 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)', '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
admin_post_(action)
wp-admin/admin-post.php 85
do_action( "admin_post_{$action}" );

Where the hook is used in WordPress

Usage not found.