Warning: This function has been deprecated.

bp_nouveau_groups_invites_custom_message( string $message = '' )

Includes a message into the sent invitation email.


Parameters Parameters

$message

(string) (Optional) The message to send with the invite

Default value: ''


Source Source

File: bp-templates/bp-nouveau/includes/groups/functions.php

function bp_nouveau_groups_invites_custom_message( $message = '' ) {
	_deprecated_function( __FUNCTION__, '6.3.0' );

	if ( empty( $message ) ) {
		return $message;
	}

	$bp = buddypress();

	if ( empty( $bp->groups->invites_message ) ) {
		return $message;
	}

	$message = str_replace( '---------------------', "
---------------------\n
" . $bp->groups->invites_message . "\n
---------------------
	", $message );

	return $message;
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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