Constructor for the number field type.

Source Source

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

	public function __construct() {

		$this->category = _x( 'Single Fields', 'xprofile field type category', 'buddypress' );
		$this->name     = _x( 'Number', 'xprofile field type', 'buddypress' );

		$this->set_format( '/^\d+|-\d+$/', 'replace' );

		 * Fires inside __construct() method for BP_XProfile_Field_Type_Number class.
		 * @since 2.0.0
		 * @param BP_XProfile_Field_Type_Number $this Current instance of
		 *                                            the field type number.
		do_action( 'bp_xprofile_field_type_number', $this );

Top ↑

Changelog Changelog

Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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