apply_filters( 'bp_get_the_profile_field_is_required', bool $retval, string $value )

Filters whether or not a profile field is required.

Description

Parameters

$retval

(bool) Whether or not the field is required.

$value

(string) Field ID that may be required.

Source

File: bp-xprofile/bp-xprofile-template.php

Changelog

Changelog
Version Description
BuddyPress 2.8.0 Added field ID. BuddyPress 2.8.0 Added field ID.
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.