bp_get_messages_subject_value()

Get the default value for the Subject field.


Description Description

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


Top ↑

Return Return

(string)


Source Source

File: bp-messages/bp-messages-template.php

	function bp_get_messages_subject_value() {

		// Sanitized in bp-messages-filters.php.
		$subject = ! empty( $_POST['subject'] )
			? $_POST['subject']
			: '';

		/**
		 * Filters the default value for the subject field.
		 *
		 * @since 1.0.0
		 *
		 * @param string $subject The default value for the subject field.
		 */
		return apply_filters( 'bp_get_messages_subject_value', $subject );
	}


Top ↑

User Contributed Notes User Contributed Notes

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