admin_page_access_denied

admin_page_access_denied

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('admin_page_access_denied') is found 1 times:

  • /wp-admin/includes/menu.php line 378

    Warning: Undefined array key 383 in /home/c6974294/public_html/wp-plugin-api.com/wp-content/themes/wordpress-hooks/functions.php on line 167

    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
         * 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 );

See this hook used in plugins: