MS_Rule_MemberRoles_ListTable

Membership List Table.

Defined (1)

The class is defined in the following location(s).

/app/rule/memberroles/class-ms-rule-memberroles-listtable.php  
  1. class MS_Rule_MemberRoles_ListTable extends MS_Helper_ListTable_Rule { 
  2.  
  3. protected $id = MS_Rule_MemberRoles::RULE_ID; 
  4.  
  5. public function __construct( $model ) { 
  6. parent::__construct( $model ); 
  7. $this->name['singular'] = __( 'Role', 'membership2' ); 
  8. $this->name['plural'] = __( 'Roles', 'membership2' ); 
  9. $this->name['default_access'] = __( 'Default WordPress Logic', 'membership2' ); 
  10.  
  11. public function get_columns() { 
  12. $name_label = __( 'Role', 'membership2' ); 
  13.  
  14. $columns = array( 
  15. 'cb' => true,  
  16. 'name' => $name_label,  
  17. 'access' => true,  
  18. ); 
  19.  
  20. return apply_filters( 
  21. 'ms_helper_listtable_' . $this->id . '_columns',  
  22. $columns 
  23. ); 
  24.  
  25. public function column_name( $item ) { 
  26. return $item->post_title; 
  27.