/**
  * Setup the rule.
  *
  * @since  1.0.0
  */
 public function prepare_obj()
 {
     if (MS_Rule_MemberRoles_Model::is_active()) {
         MS_Model_Rule::register_rule(self::RULE_ID, __CLASS__, __('User Roles', MS_TEXT_DOMAIN), 2);
     }
     $this->add_filter('ms_view_protectedcontent_define-' . self::RULE_ID, 'handle_render_callback', 10, 2);
     $this->add_filter('ms_rule_listtable-' . self::RULE_ID, 'return_listtable');
 }
 /**
  * Setup the rule.
  *
  * @since  1.0.0
  */
 public function prepare_obj()
 {
     if (MS_Rule_Post_Model::is_active()) {
         MS_Model_Rule::register_rule(self::RULE_ID, __CLASS__, __('Posts', 'membership2'), 11, true);
     }
     $this->add_filter('ms_view_protectedcontent_define-' . self::RULE_ID, 'handle_render_callback', 10, 2);
     $this->add_filter('ms_rule_listtable-' . self::RULE_ID, 'return_listtable');
 }
 /**
  * Setup the rule.
  *
  * @since  1.0.0
  */
 public function prepare_obj()
 {
     MS_Model_Rule::register_rule(self::RULE_ID, __CLASS__, __('BuddyPress', MS_TEXT_DOMAIN), 40);
     $this->add_filter('ms_view_protectedcontent_define-' . self::RULE_ID, 'handle_render_callback', 10, 2);
 }
 /**
  * Setup the rule.
  *
  * @since  1.0.0
  */
 public function prepare_obj()
 {
     MS_Model_Rule::register_rule(self::RULE_ID, __CLASS__, __('bbPress', 'membership2'), 100);
     $this->add_filter('ms_view_protectedcontent_define-' . self::RULE_ID, 'handle_render_callback', 10, 2);
 }
 /**
  * Setup the rule.
  *
  * @since  1.0.0
  */
 public function prepare_obj()
 {
     MS_Model_Rule::register_rule(self::RULE_ID, __CLASS__, __('Shortcodes', MS_TEXT_DOMAIN), 70);
     $this->add_filter('ms_view_protectedcontent_define-' . self::RULE_ID, 'handle_render_callback', 10, 2);
     $this->add_filter('ms_rule_listtable-' . self::RULE_ID, 'return_listtable');
 }