BP_XProfile_Field_Type_Telephone::__construct()
Constructor for the telephone number field type.
Source Source
File: bp-xprofile/classes/class-bp-xprofile-field-type-telephone.php
public function __construct() { parent::__construct(); $this->category = _x( 'Single Fields', 'xprofile field type category', 'buddypress' ); $this->name = _x( 'Phone Number', 'xprofile field type', 'buddypress' ); $this->set_format( '/^.*$/', 'replace' ); /** * Fires inside __construct() method for BP_XProfile_Field_Type_Telephone class. * * @since 3.0.0 * * @param BP_XProfile_Field_Type_Telephone $this Current instance of the field type. */ do_action( 'bp_xprofile_field_type_telephone', $this ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |