messages_message_subject_before_save

  • apply_filters( 'messages_message_subject_before_save',   $this->subject,   $this->id )

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-classes.php :: Trac Source Line: 285
      			$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;
      
      		$new_thread = false;
      

Hook: add_filter: messages_message_subject_before_save instances (2)

  • add_filter( 'messages_message_subject_before_save', 'wp_filter_kses', 1 )
    $tag: messages_message_subject_before_save
    $function_to_add: wp_filter_kses
    $priority: 1
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-filters.php :: Trac Source Line: 15
      add_filter( 'bp_get_message_notice_subject', 'wp_filter_kses', 1 );
      add_filter( 'bp_get_message_notice_text', 'wp_filter_kses', 1 );
      add_filter( 'bp_get_message_thread_subject', 'wp_filter_kses', 1 );
      add_filter( 'bp_get_message_thread_excerpt', 'wp_filter_kses', 1 );
      add_filter( 'bp_get_messages_subject_value', 'wp_filter_kses', 1 );
      add_filter( 'bp_get_messages_content_value', 'wp_filter_kses', 1 );
      add_filter( 'bp_get_the_thread_message_content', 'wp_filter_kses', 1 );
      
      add_filter( 'messages_message_content_before_save', 'wp_filter_kses', 1 );
      add_filter( 'messages_message_subject_before_save', 'wp_filter_kses', 1 );
      add_filter( 'messages_notice_message_before_save', 'wp_filter_kses', 1 );
      add_filter( 'messages_notice_subject_before_save', 'wp_filter_kses', 1 );
      
      add_filter( 'bp_get_the_thread_message_content', 'wp_filter_kses', 1 );
      add_filter( 'bp_get_the_thread_subject', 'wp_filter_kses', 1 );
      
      add_filter( 'messages_message_content_before_save', 'force_balance_tags' );
      add_filter( 'messages_message_subject_before_save', 'force_balance_tags' );
      add_filter( 'messages_notice_message_before_save', 'force_balance_tags' );
      add_filter( 'messages_notice_subject_before_save', 'force_balance_tags' );
      
  • add_filter( 'messages_message_subject_before_save', 'force_balance_tags' )
    $tag: messages_message_subject_before_save
    $function_to_add: force_balance_tags
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-filters.php :: Trac Source Line: 23
      add_filter( 'messages_message_content_before_save', 'wp_filter_kses', 1 );
      add_filter( 'messages_message_subject_before_save', 'wp_filter_kses', 1 );
      add_filter( 'messages_notice_message_before_save', 'wp_filter_kses', 1 );
      add_filter( 'messages_notice_subject_before_save', 'wp_filter_kses', 1 );
      
      add_filter( 'bp_get_the_thread_message_content', 'wp_filter_kses', 1 );
      add_filter( 'bp_get_the_thread_subject', 'wp_filter_kses', 1 );
      
      add_filter( 'messages_message_content_before_save', 'force_balance_tags' );
      add_filter( 'messages_message_subject_before_save', 'force_balance_tags' );
      add_filter( 'messages_notice_message_before_save', 'force_balance_tags' );
      add_filter( 'messages_notice_subject_before_save', 'force_balance_tags' );
      
      add_filter( 'bp_get_message_notice_subject', 'wptexturize' );
      add_filter( 'bp_get_message_notice_text', 'wptexturize' );
      add_filter( 'bp_get_message_thread_subject', 'wptexturize' );
      add_filter( 'bp_get_message_thread_excerpt', 'wptexturize' );
      add_filter( 'bp_get_the_thread_message_content', 'wptexturize' );
      
      add_filter( 'bp_get_message_notice_subject', 'convert_smilies', 2 );
      

Comments are closed.