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

Description 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() );

Top ↑

Return Return

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

Source Source

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

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

Top ↑

Changelog Changelog

Version Description
1.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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