This Filter is applied to check current user is accessible for restricted content shortcode or not .
Hook Name: arm_restrict_content_shortcode_hasaccess
Hook Type: Filter
Source: core/classes/class.arm_shortcodes.php
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