bp_get_the_profile_field_errors_action()

Returns the action name for any signup errors related to this profile field.

Description

In the registration templates, signup errors are pulled from the global object and rendered at actions that look like ‘bp_field_12_errors’. This function allows the action name to be easily concatenated and called in the following fashion: do_action( bp_get_the_profile_field_errors_action() );

Return

(string) The _errors action name corresponding to this profile field.

Source

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

function bp_get_the_profile_field_errors_action() {
	global $field;
	return 'bp_field_' . $field->id . '_errors';
}

Changelog

Changelog
Version Description
BuddyPress 1.8.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.