bp_get_messages_content_value()
Get the default value fo the Compose content field.
Description
Will get a value out of $_POST[‘content’] if available (ie after a failed submission).
Return
(string)
Source
File: bp-messages/bp-messages-template.php
function bp_get_messages_content_value() { // Sanitized in bp-messages-filters.php. $content = ! empty( $_POST['content'] ) ? $_POST['content'] : ''; /** * Filters the default value for the content field. * * @since BuddyPress 1.0.0 * * @param string $content The default value for the content field. */ return apply_filters( 'bp_get_messages_content_value', $content ); }
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.