Constructor for the telephone number field type.

Source Source

File: bp-xprofile/classes/class-bp-xprofile-field-type-telephone.php

	public function __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 );

Top ↑

Changelog Changelog

Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.