Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

BP_XProfile_Field::is_default_field( int $field_id )

Return if a field ID is the default field.


Description Description


Parameters Parameters

$field_id

(Required) ID of field to check.


Top ↑

Return Return

(bool)


Top ↑

Source Source

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

	private function is_default_field( $field_id = 0 ) {

		// Fallback to current field ID if none passed.
		if ( empty( $field_id ) ) {
			$field_id = $this->id;
		}

		// Compare & return.
		return (bool) ( 1 === (int) $field_id );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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