/** * Constructor for the Member type field type * * @since 1.0.1 */ public function __construct() { parent::__construct(); $this->category = __('Multi Fields', 'buddypress-group-restrictions'); $this->name = __('Member type', 'buddypress-group-restrictions'); $this->supports_options = true; // This allows us to manage the member type even when reset to nothing $this->accepts_null_value = true; $this->set_format('/^.+$/', 'replace'); $this->is_unique(); }
public function __construct() { parent::__construct(); $this->category = _x('Single Fields', 'xprofile field type category', 'bp-pseudo-role-field'); $this->name = _x('Pseudo Role', 'xprofile field type', 'bp-pseudo-role-field'); $this->set_format('', 'replace'); $this->supports_multiple_defaults = false; $this->accepts_null_value = true; $this->supports_options = false; do_action('bd_pseudo_role_field', $this); }