admin_action_(action)
Fires when an 'action' request variable is sent.
The dynamic portion of the hook name, $action, refers to the action derived from the GET or POST request.
Usage
add_action( 'admin_action_(action)', 'wp_kama_admin_action' ); /** * Function for `admin_action_(action)` action-hook. * * @return void */ function wp_kama_admin_action(){ // action... }
Changelog
Since 2.6.0 | Introduced. |
Where the hook is called
In file: /wp-admin/admin.php
admin_action_(action)
wp-admin/admin.php 419
do_action( "admin_action_{$action}" );