messages_message_thread_id_before_save

  • apply_filters( 'messages_message_thread_id_before_save', $this->thread_id, $this->id )

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-classes.php :: Trac Source Line: 284
      			$this->message   = $message->message;
      			$this->date_sent = $message->date_sent;
      		}
      	}
      
      	function send() {
      		global $wpdb, $bp;
      
      		$this->sender_id = apply_filters( 'messages_message_sender_id_before_save', $this->sender_id, $this->id );
      		$this->thread_id = apply_filters( 'messages_message_thread_id_before_save', $this->thread_id, $this->id );
      		$this->subject   = apply_filters( 'messages_message_subject_before_save',   $this->subject,   $this->id );
      		$this->message   = apply_filters( 'messages_message_content_before_save',   $this->message,   $this->id );
      		$this->date_sent = apply_filters( 'messages_message_date_sent_before_save', $this->date_sent, $this->id );
      
      		do_action_ref_array( 'messages_message_before_save', array( &$this ) );
      
      		// Make sure we have at least one recipient before sending.
      		if ( empty( $this->recipients ) )
      			return false;
      

Comments are closed.