aam_wp_die_args_filter

Purpose

Change arguments passed to the access-denied wp_die() response.

Callback

Example

add_filter('aam_wp_die_args_filter', function ($wp_die_args) {
    $wp_die_args['response'] = 403;
    return $wp_die_args;
}, 10, 1);

Changes the HTTP status of AAM’s access-denied wp_die() response to 403.

See the complete hook list.