bp_get_messages_form_action

  • apply_filters( 'bp_get_messages_form_action', trailingslashit( bp_loggedin_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() . '/' . bp_action_variable( 0 ) ) )

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-template.php :: Trac Source Line: 362
      }
      	/**
      	 * Returns the form action for Messages HTML forms
      	 *
      	 * @package BuddyPress
      	 *
      	 * @return str The form action
      	 */
      	function bp_get_messages_form_action() {
      		return apply_filters( 'bp_get_messages_form_action', trailingslashit( bp_loggedin_user_domain() . bp_get_messages_slug() . '/' . bp_current_action() . '/' . bp_action_variable( 0 ) ) );
      	}
      
      function bp_messages_username_value() {
      	echo bp_get_messages_username_value();
      }
      	function bp_get_messages_username_value() {
      		if ( isset( $_COOKIE['bp_messages_send_to'] ) ) {
      			return apply_filters( 'bp_get_messages_username_value', $_COOKIE['bp_messages_send_to'] );
      		} else if ( isset( $_GET['r'] ) && !isset( $_COOKIE['bp_messages_send_to'] ) ) {
      			return apply_filters( 'bp_get_messages_username_value', $_GET['r'] );
      

Comments are closed.