BP_XProfile_Field_Type_Telephone::admin_field_html( array $raw_properties = array() )

Output HTML for this field type on the wp-admin Profile Fields screen.

Description Description

Must be used inside the bp_profile_fields() template loop.

Top ↑

Parameters Parameters


(array) (Optional) key/value array of permitted attributes that you want to add.

Default value: array()

Source Source

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

	public function admin_field_html( array $raw_properties = array() ) {
		$r = bp_parse_args( $raw_properties, array(
			'type' => 'tel',
		) ); ?>

		<label for="<?php bp_the_profile_field_input_name(); ?>" class="screen-reader-text"><?php
			/* translators: accessibility text */
			esc_html_e( 'Phone Number', 'buddypress' );
		<input <?php echo $this->get_edit_field_html_elements( $r ); ?>>


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.