admin_page_access_denied
Fires when access to an admin page is denied.
Usage
add_action( 'admin_page_access_denied', 'wp_kama_admin_page_access_denied_action' ); /** * Function for `admin_page_access_denied` action-hook. * * @return void */ function wp_kama_admin_page_access_denied_action(){ // action... }
Changelog
Since 2.5.0 | Introduced. |
Where the hook is called
In file: /wp-admin/includes/menu.php
admin_page_access_denied
wp-admin/includes/menu.php 378
do_action( 'admin_page_access_denied' );
Where the hook is used in WordPress
wp-admin/includes/admin-filters.php 11
add_action( 'admin_page_access_denied', 'wp_link_manager_disabled_message' );
wp-admin/includes/ms-admin-filters.php 17
add_action( 'admin_page_access_denied', '_access_denied_splash', 99 );