arm_before_restricted_site_access_redirect

This action will be executed before redirection process will occur for restricted content of a site.

Hook Type: Action
Usage:
add_action( 'arm_restrict_site_access_handling', 'your_function', 10, 2);
function your_function($redirect_url, $wp) {
    //Do Your Action.
    //$redirect_url Redirection URL.
    //$wp WordPress Object from 'parse_request' hook.
}
Parameters:
$redirect_url
Redirection URL
$wp
WordPress Object from ‘parse_request’ hook