wphooks.info - admin_page_access_denied

admin_page_access_denied

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-admin/includes/menu.php:
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
	unset( $menu[ $last_menu_key ] );
unset( $last_menu_key );

if ( !user_can_access_admin_page() ) {

	/**
	 * Fires when access to an admin page is denied.
	 *
	 * @since 2.5.0
	 */
	do_action( 'admin_page_access_denied' );

	wp_die( __( 'Sorry, you are not allowed to access this page.' ), 403 );
}

$menu = add_menu_classes($menu);