bp_xprofile_settings_add_feedback_message()

Adds feedback messages when successfully saving profile field settings.

Description

Source

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

function bp_xprofile_settings_add_feedback_message() {

	// Default message type is success.
	$type    = 'success';
	$message = __( 'Your profile settings have been saved.',        'buddyboss' );

	// Community moderator editing another user's settings.
	if ( ! bp_is_my_profile() && bp_core_can_edit_settings() ) {
		$message = __( "This member's profile settings have been saved.", 'buddyboss' );
	}

	// Add the message.
	bp_core_add_message( $message, $type );
}

Changelog

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