bp_get_the_profile_field_is_required()
Return whether or not a profile field is required.
Description
Return
(bool)
Source
File: bp-xprofile/bp-xprofile-template.php
function bp_get_the_profile_field_is_required() { global $field; $retval = false; if ( isset( $field->is_required ) ) { $retval = $field->is_required; } /** * Filters whether or not a profile field is required. * * @since BuddyPress 1.1.0 * @since BuddyPress 2.8.0 Added field ID. * * @param bool $retval Whether or not the field is required. * @param string $value Field ID that may be required. */ return (bool) apply_filters( 'bp_get_the_profile_field_is_required', $retval, $field->id ); }
Changelog
Version | Description |
---|---|
BuddyPress 1.1.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.