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
Usage:
add_action( 'arm_restrict_site_access_handling', 'your_function');
function your_function($wp) {
    //Do Your Action.
    //$wp WordPress Object from 'parse_request' hook.
}
Parameters:
$wp
WordPress Object from ‘parse_request’ hook
Usage:
add_filter( 'arm_restrict_content_shortcode_hasaccess', 'your_function', 10, 2);
function your_function($hasaccess, $args) {
    //$hasaccess Array of access rule items.
    //$args Shortcode Arguments.
    return $hasaccess;
}
Parameters:
$hasaccess
Array of access rule items
$args
Shortcode Arguments
Usage:
add_filter( 'arm_before_update_custom_access_rules', 'your_function', 10, 3);
function your_function($custom_rules = array(), $type_slug, $arm_rules) {
    //$custom_rules Array of old custom rules.
    //$type_slug Access Rule Type.
    //$arm_rules New Access Rules.
    if ($type_slug == 'custom_rule') {
        foreach ($arm_rules as $item_id => $item_rule) {
            $item_rule = (array) $item_rule;
            if (empty($item_rule['protection']) || $item_rule['protection'] == '0') {
                unset($item_rule['plans']);
            } else {
                $item_rule['plans'] = (array) $item_rule['plans'];
                $item_rule['plans'] = array_keys($item_rule['plans']);
            }
            $custom_rules['custom_rule'][$item_id] = $item_rule;
	}
    }
    return $custom_rules;
}
Parameters:
$custom_rules
Array of old custom rules
$type_slug
Access Rule Type
$arm_rules
New Access Rules
Usage:
add_filter( 'arm_prepare_custom_rule_data', 'your_function', 10, 2);
function your_function($rule_records, $args) {
    //$rule_records Array of access rule items.
    //$args Array of filter arguments for grid listing
    global $arm_access_rules;
    if ($args['slug'] == 'custom_rule') {
        $dbrules = $arm_access_rules->arm_get_custom_access_rules('custom_rule');
        $protection = (!empty($dbrules['custom_item']['protection'])) ? $dbrules['custom_item']['protection'] : '0';
        $plans = (!empty($dbrules['custom_item']['plans'])) ? $dbrules['custom_item']['plans'] : array();
        $rule_records['custom_item'] = array(
           'id' => 'custom_item',
            'title' => 'Custom Item',
            'description' => 'This is Custom Item',
            'protection' => $protection,
            'plans' => $plans,
        );
    }
    return $rule_records;
}
Parameters:
$rule_records
Array of access rule items
$args
Array of filter arguments for grid listing
Usage:
add_filter( 'arm_custom_rule_types', 'your_function');
function your_function($rule_types = array()) {
    //$rule_types Custom Access Rule Types.
    $rule_types['custom_rule'] = 'Custom Rules';
    return $rule_types;
}
Parameters:
$rule_types
Custom Access Rule Types
Usage:
add_filter( 'arm_prepare_rule_data', 'your_function', 10, 2);
function your_function($rule_records, $args) {
    //$rule_records Array of access rule items.
    //$args Array of filter arguments for grid listing
    return $rule_records;
}
Parameters:
$rule_records
Array of access rule items
$args
Array of filter arguments for grid listing
Usage:
add_filter( 'arm_restricted_feed_content_posts', 'your_function');
function your_function($posts) {
    //$posts Posts Object. Display post content when feed is restricted.
    return $posts;
}
Parameters:
$posts
Posts Object. Display post content when feed is restricted.
Usage:
add_filter( 'arm_special_page_access', 'your_function', 10, 3);
function your_function($allowed = true, $current_page_type, $sp_rules) {
    //$allowed True if allowed access, False if not allowed.
    //$current_page_type Array of current page type
    //$sp_rules Special Pages Rules Array
    if (in_array('home', $current_page_type)) {
        $allowed = true;
    }
    return $allowed;
}
Parameters:
$allowed
True if allowed access, False if not allowed
$current_page_type
Array of current page type
$sp_rules
Special Pages Rules Array
Usage:
add_filter( 'arm_is_allow_access', 'your_function', 10, 2);
function your_function($allowed = true, $extraVars = array()) {
    //$allowed True if allowed access, False if not allowed.
    //$extraVars Array of User information like User ID & Plan ID
    if ($extraVars['current_user_id'] == 42) {
        $allowed = true;
    }
    return $allowed;
}
Parameters:
$allowed
True if allowed access, False if not allowed
$extraVars
Array of User information like User ID & Plan ID