BP_XProfile_Field_Type_Telephone::get_phone_formats()

Returns an array of phone formats

Description

Return

(array)

Source

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

    public function get_phone_formats () {
        $phone_formats = array(
			'standard'      => array(
				'label'       => '(###) ###-####',
				'mask'        => '(999) 999-9999',
                'placeholder' => '(###) ###-####',
			),
			'international' => array(
				'label'       => __( 'International', 'buddyboss' ),
				'mask'        => false,
                'placeholder' => '',
			),
		);
        
        return $phone_formats;
    }

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.