bp_get_messages_content_value()

Get the default value fo the Compose content field.


Description Description

Will get a value out of $_POST[‘content’] if available (ie after a failed submission).


Top ↑

Return Return

(string)


Source 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 1.0.0
		 *
		 * @param string $content The default value for the content field.
		 */
		return apply_filters( 'bp_get_messages_content_value', $content );
	}


Top ↑

User Contributed Notes User Contributed Notes

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