bp_xprofile_settings_add_feedback_message()

Adds feedback messages when successfully saving profile field settings.


Source 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.',        'buddypress' );

	// 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.", 'buddypress' );
	}

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


Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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