Faster, Smoother New Version of ARMember7.0Launched Buy Now

API Documents

Description.

arm_before_update_custom_access_rules

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 […]

arm_prepare_custom_rule_data

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

arm_custom_rule_types

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;

arm_prepare_rule_data

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

arm_restricted_feed_content_posts

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; }

arm_special_page_access

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

arm_is_allow_access

Usage: add_filter( ‘arm_is_allow_access’, ‘your_function’, 10, 2); function your_function($allowed = true, $extraVars = array()) { //$allowed True if allowed access, False

arm_restricted_site_access_allow_pages

Usage: add_filter( ‘arm_restricted_site_access_allow_pages’, ‘your_function’); function your_function($page_ids) { //$page_ids Array of allowed page ids. $page_ids[] = 31; return $page_ids; } Parameters:

arm_restricted_url_redirect_url

Usage: add_filter( ‘arm_restricted_url_redirect_url’, ‘your_function’, 10, 2); function your_function($redirect_url, $wp) { //$redirect_url Redirection URL. //$wp Global WordPress Object $redirect_url = ‘http://example.com’;

arm_restricted_urls

Usage: add_filter( ‘arm_restricted_urls’, ‘your_function’); function your_function($block_urls) { //$block_urls Array of blocked URLs. $block_urls[] = ‘http://example.com’; return $block_urls; } Parameters: $block_urls