MS_Rule_Shortcode_ListTable

Membership List Table.

Defined (1)

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

/app/rule/shortcode/class-ms-rule-shortcode-listtable.php  
  1. class MS_Rule_Shortcode_ListTable extends MS_Helper_ListTable_Rule { 
  2.  
  3. protected $id = MS_Rule_Shortcode::RULE_ID; 
  4.  
  5. public function __construct( $model ) { 
  6. parent::__construct( $model ); 
  7. $this->name['singular'] = __( 'Shortcode', 'membership2' ); 
  8. $this->name['plural'] = __( 'Shortcodes', 'membership2' ); 
  9.  
  10. public function get_columns() { 
  11. return apply_filters( 
  12. 'membership_helper_listtable_' . $this->id . '_columns',  
  13. array( 
  14. 'cb' => true,  
  15. 'name' => __( 'Shortcode', 'membership2' ),  
  16. 'access' => true,  
  17. ); 
  18.  
  19. public function column_name( $item ) { 
  20. $html = $item->name; 
  21. return $html; 
  22.