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.
Return Return
(bool)
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 ); }
Changelog Changelog
Version | Description |
---|---|
2.3.0 | Introduced. |