bp_get_the_thread_subject

  • apply_filters( 'bp_get_the_thread_subject', $thread_template->thread->last_message_subject )

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-template.php :: Trac Source Line: 768
      		return apply_filters( 'bp_get_the_thread_id', $thread_template->thread->thread_id );
      	}
      
      function bp_the_thread_subject() {
      	echo bp_get_the_thread_subject();
      }
      	function bp_get_the_thread_subject() {
      		global $thread_template;
      
      		return apply_filters( 'bp_get_the_thread_subject', $thread_template->thread->last_message_subject );
      	}
      
      function bp_the_thread_recipients() {
      	echo bp_get_the_thread_recipients();
      }
      	function bp_get_the_thread_recipients() {
      		global $thread_template, $bp;
      
      		$recipient_links = array();
      

Hook: add_filter: bp_get_the_thread_subject instances (2)

  • add_filter( 'bp_get_the_thread_subject', 'wp_filter_kses', 1 )
    $tag: bp_get_the_thread_subject
    $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: 20
      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( '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_subject', 'stripslashes_deep' )
    $tag: bp_get_the_thread_subject
    $function_to_add: stripslashes_deep
    $priority: 0
    $accepted_args: 0

    Source Reference:

Comments are closed.