admin_page_access_denied

admin_page_access_denied

Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.0.1

do_action('admin_page_access_denied') is found 1 times:

  • /wp-admin/includes/menu.php line 362
    	 * 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 );