bp_get_messages_subject_value()
Get the default value for the Subject field.
Description
Will get a value out of $_POST[‘subject’] if available (ie after a failed submission).
Return
(string)
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 BuddyPress 1.0.0 * * @param string $subject The default value for the subject field. */ return apply_filters( 'bp_get_messages_subject_value', $subject ); }
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.