Пример #1
0
 /**
  * Handles rule's stuff initialization.
  *
  * @access public
  */
 public function on_creation()
 {
     parent::on_creation();
     $this->name = 'categories';
     $this->label = __('Categories', 'membership');
     $this->description = __('Allows posts to be protected based on their assigned categories.', 'membership');
     $this->rulearea = 'public';
 }
Пример #2
0
 /**
  * Handles rule's stuff initialization.
  *
  * @access public
  */
 public function on_creation()
 {
     parent::on_creation();
     $this->name = 'bpgroupcreation';
     $this->label = _x('Group Creation', 'The rule title which restricts the ability to create BuddyPress rules.', 'membership');
     $this->description = _x('Allows group creation to be allowed to members only.', 'The rule description which restricts the ability to create BuddyPress groups.', 'membership');
     $this->rulearea = 'public';
 }
Пример #3
0
 /**
  * Handles rule's stuff initialization.
  *
  * @access public
  */
 public function on_creation()
 {
     parent::on_creation();
     $this->name = 'bpfriendship';
     $this->label = __('Friend Connections', 'membership');
     $this->description = __('Allows the sending friendship requests to be limited to members.', 'membership');
     $this->rulearea = 'public';
 }
Пример #4
0
 /**
  * Handles rule's stuff initialization.
  *
  * @access public
  */
 public function on_creation()
 {
     parent::on_creation();
     $this->name = 'bpprivatemessage';
     $this->label = __('Private Messaging', 'membership');
     $this->description = __('Allows the sending of private messages to be limited to members.', 'membership');
     $this->rulearea = 'public';
 }
Пример #5
0
 public function on_creation()
 {
     parent::on_creation();
     $this->name = 'submenus';
     $this->label = __('Sub Menus', 'membership');
     $this->description = __('Allows admin side sub menus to be protected.', 'membership');
     $this->rulearea = 'admin';
 }