messages_notice_subject_before_save

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

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-classes.php :: Trac Source Line: 405
      			$this->message   = $notice->message;
      			$this->date_sent = $notice->date_sent;
      			$this->is_active = $notice->is_active;
      		}
      	}
      
      	function save() {
      		global $wpdb, $bp;
      
      		$this->subject = apply_filters( 'messages_notice_subject_before_save', $this->subject, $this->id );
      		$this->message = apply_filters( 'messages_notice_message_before_save', $this->message, $this->id );
      
      		do_action_ref_array( 'messages_notice_before_save', array( &$this ) );
      
      		if ( empty( $this->id ) )
      			$sql = $wpdb->prepare( "INSERT INTO {$bp->messages->table_name_notices} (subject, message, date_sent, is_active) VALUES (%s, %s, %s, %d)", $this->subject, $this->message, $this->date_sent, $this->is_active );
      		else
      			$sql = $wpdb->prepare( "UPDATE {$bp->messages->table_name_notices} SET subject = %s, message = %s, is_active = %d WHERE id = %d", $this->subject, $this->message, $this->is_active, $this->id );
      
      		if ( !$wpdb->query( $sql ) )
      

Hook: add_filter: messages_notice_subject_before_save instances (2)

  • add_filter( 'messages_notice_subject_before_save', 'wp_filter_kses', 1 )
    $tag: messages_notice_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: 17
      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( 'bp_get_message_notice_subject', 'wptexturize' );
      
  • add_filter( 'messages_notice_subject_before_save', 'force_balance_tags' )
    $tag: messages_notice_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: 25
      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 );
      add_filter( 'bp_get_message_notice_text', 'convert_smilies', 2 );
      add_filter( 'bp_get_message_thread_subject', 'convert_smilies', 2 );
      

Comments are closed.