messages_add_callback_values( string $recipients, string $subject, string $content )
Set messages-related cookies.
Description
Saves the ‘bp_messages_send_to’, ‘bp_messages_subject’, and ‘bp_messages_content’ cookies, which are used when setting up the default values on the messages page.
Parameters
- $recipients
-
(Required) Comma-separated list of recipient usernames.
- $subject
-
(Required) Subject of the message.
- $content
-
(Required) Content of the message.
Source
File: bp-messages/bp-messages-functions.php
function messages_add_callback_values( $recipients, $subject, $content ) { @setcookie( 'bp_messages_send_to', $recipients, time() + 60 * 60 * 24, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); @setcookie( 'bp_messages_subject', $subject, time() + 60 * 60 * 24, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); @setcookie( 'bp_messages_content', $content, time() + 60 * 60 * 24, COOKIEPATH, COOKIE_DOMAIN, is_ssl() ); }
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.