arm_set_ini_for_access_rules(); $data_cols = array(); $rule_types = $arm_access_rules->arm_get_access_rule_types(); $all_plans = $arm_subscription_plans->arm_get_all_subscription_plans('arm_subscription_plan_id, arm_subscription_plan_name'); $cur_type = 'post_type'; $cur_slug = 'page'; $cur_plan = ''; $cur_protection = 'all'; $filter_search = (!empty($_REQUEST['search'])) ? $_REQUEST['search'] : ''; if (isset($_REQUEST['type']) && !empty($_REQUEST['type'])) { $cur_type = $_REQUEST['type']; } if (isset($_REQUEST['slug']) && !empty($_REQUEST['slug'])) { $cur_slug = $_REQUEST['slug']; } if (isset($_REQUEST['plan']) && !empty($_REQUEST['plan'])) { $cur_plan = $_REQUEST['plan']; } if (isset($_REQUEST['protection'])) { if ($_REQUEST['protection'] == "0") { $cur_protection = "0"; } else { if (!empty($_REQUEST['protection'])) { $cur_protection = $_REQUEST['protection']; } } } $not_sortable = '1,'; $rule_item_fields = ''; wp_enqueue_script('jquery-ui-tooltip'); ?>
:
    $opts) { ?>
    $label) { ?>
:
$cur_type, 'slug' => $cur_slug, 'plan' => $cur_plan, 'protection' => $cur_protection, ); $rule_records = $arm_access_rules->arm_prepare_rule_data($rule_args); //Table Records $data_cols = array(); if (!empty($rule_records)) { foreach ($rule_records as $item) { $item_id = $item['id']; $item_plans = (!empty($item['plans'])) ? $item['plans'] : array(); $title_text = $item['title']; $pdata_cols = array(); if (isset($item['description']) && !empty($item['description'])) { $title_text .= ''.$item['description'].''; } $pdata_cols[] = $title_text; //For Protection $switchChecked = ($item['protection'] == 1) ? 'checked="checked"' : ''; $protection_html = '
'; $pdata_cols[] = $protection_html; //For Plan Data if ($all_plans){ $plan_id = '-2'; $item_checked = (in_array($plan_id, $item_plans)) ? 'checked="checked"' : ''; $pdata_cols[] .= ''; foreach ($all_plans as $sp) { $plan_id = $sp['arm_subscription_plan_id']; $item_checked = (in_array($plan_id, $item_plans)) ? 'checked="checked"' : ''; $plan_html = ''; $plan_html .= ''; $pdata_cols[] = $plan_html; } } $data_cols[] = array_values($pdata_cols); } } ?> '.__('Users Having No Plan', 'ARMember').''; $filter_cols .= ''; $i = 3; foreach ($all_plans as $sp) { $plan_id = $sp['arm_subscription_plan_id']; $plan_title = stripslashes($sp['arm_subscription_plan_name']); $title_cols .= ''; $filter_cols .= ''; $not_sortable .= "$i,"; $i++; } } ?>

'.$plan_title.'
">

,