public function __construct($model) { parent::__construct($model); $this->name['singular'] = __('URL', 'membership2'); $this->name['plural'] = __('URLs', 'membership2'); $this->name['default_access'] = __('Nobody', 'membership2'); }
public function __construct($model) { parent::__construct($model); $this->name['singular'] = __('Admin Page', 'membership2'); $this->name['plural'] = __('Admin Pages', 'membership2'); $this->name['default_access'] = __('Handled by WordPress', 'membership2'); }
public function __construct($model) { parent::__construct($model); $this->name['singular'] = __('Role', 'membership2'); $this->name['plural'] = __('Roles', 'membership2'); $this->name['default_access'] = __('Default WordPress Logic', 'membership2'); }
public function __construct($model) { parent::__construct($model); $this->name['singular'] = __('Capability', MS_TEXT_DOMAIN); $this->name['plural'] = __('Capabilities', MS_TEXT_DOMAIN); $this->name['default_access'] = __('Default WordPress Logic', MS_TEXT_DOMAIN); }
public function __construct($model) { parent::__construct($model); $this->name['singular'] = __('URL', MS_TEXT_DOMAIN); $this->name['plural'] = __('URLs', MS_TEXT_DOMAIN); $this->name['default_access'] = __('Nobody', MS_TEXT_DOMAIN); }
public function __construct($model, $all_menus, $menu_id) { parent::__construct($model); $this->menus = $all_menus; $this->menu_id = $menu_id; $this->name['singular'] = __('Menu Item', MS_TEXT_DOMAIN); $this->name['plural'] = __('Menu Items', MS_TEXT_DOMAIN); }
public function __construct($model, $all_menus, $menu_id) { parent::__construct($model); $this->menus = $all_menus; $this->menu_id = $menu_id; $this->name['singular'] = __('Menu Item', 'membership2'); $this->name['plural'] = __('Menu Items', 'membership2'); }
/** * Initialize the list table * * @since 1.0.0 * @param MS_Rule $model Rule-Model */ public function __construct($model) { parent::__construct(array('singular' => 'rule_' . $this->id, 'plural' => 'rules_' . $this->id, 'ajax' => false)); $this->name['singular'] = __('Item', 'membership2'); $this->name['plural'] = __('Items', 'membership2'); $this->name['default_access'] = __('Everyone', 'membership2'); $this->model = $model; $this->membership = MS_Model_Membership::get_base(); $memberships = MS_Model_Membership::get_memberships(); self::$memberships = array(); foreach ($memberships as $item) { self::$memberships[$item->id] = (object) array('label' => $item->name, 'attr' => sprintf('data-color="%1$s"', $item->get_color())); } // Add code right before the bulk actions are displayed. add_action('ms_listtable_before_bulk_actions', array($this, 'add_rule_type')); }
public function __construct($model) { parent::__construct($model); $this->name['singular'] = __('Special Page', MS_TEXT_DOMAIN); $this->name['plural'] = __('Special Pages', MS_TEXT_DOMAIN); }
public function __construct($model) { parent::__construct($model); $this->name['singular'] = __('Category', 'membership2'); $this->name['plural'] = __('Categories', 'membership2'); }
public function __construct($model) { parent::__construct($model); $this->name['singular'] = __('Custom Post', MS_TEXT_DOMAIN); $this->name['plural'] = __('Custom Posts', MS_TEXT_DOMAIN); }
public function __construct($model) { parent::__construct($model); $this->name['singular'] = __('Special Page', 'membership2'); $this->name['plural'] = __('Special Pages', 'membership2'); }
/** * Prepare the table contents so they can be displayed later. * * @since 1.0.0 */ public function prepare_items() { parent::prepare_items(); // Load the matching-list that is displayed for each item. $this->matching_options = apply_filters('ms_helper_listtable_matching_' . $this->id . ' _matching', $this->model->get_matching_options()); }
public function __construct($model) { parent::__construct($model); $this->name['singular'] = __('Custom Post Type', 'membership2'); $this->name['plural'] = __('Custom Post Types', 'membership2'); }
public function __construct($model) { parent::__construct($model); $this->name['singular'] = __('Category', MS_TEXT_DOMAIN); $this->name['plural'] = __('Categories', MS_TEXT_DOMAIN); }
public function __construct($model) { parent::__construct($model); $this->name['singular'] = __('Content Part', 'membership2'); $this->name['plural'] = __('Content Parts', 'membership2'); }