bp_get_the_thread_message_content

  • apply_filters( 'bp_get_the_thread_message_content', $_REQUEST['content'] ) )

    Source Reference:

    • Component: BuddyPress :: bp-themes
      File: /bp-themes/bp-default/_inc/ajax.php :: Trac Source Line: 551
      				<strong><a href="<?php echo $bp->loggedin_user->domain ?>"><?php echo $bp->loggedin_user->fullname ?></a> <span class="activity"><?php printf( __( 'Sent %s', 'buddypress' ), bp_core_time_since( bp_core_current_time() ) ) ?></span></strong>
      
      				<?php do_action( 'bp_after_message_meta' ) ?>
      			</div>
      
      			<?php do_action( 'bp_before_message_content' ) ?>
      
      			<div class="message-content">
      				<?php echo stripslashes( apply_filters( 'bp_get_the_thread_message_content', $_REQUEST['content'] ) ) ?>
      			</div>
      
      			<?php do_action( 'bp_after_message_content' ) ?>
      
      			<div class="clear"></div>
      		</div>
      	<?php
      	} else {
      		echo "-1<div id='message' class='error'><p>" . __( 'There was a problem sending that reply. Please try again.', 'buddypress' ) . '</p></div>';
      	}
      
  • apply_filters( 'bp_get_the_thread_message_content', $thread_template->message->message )

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-template.php :: Trac Source Line: 864
      		return apply_filters( 'bp_get_the_thread_message_time_since', sprintf( __( 'Sent %s', 'buddypress' ), bp_core_time_since( strtotime( $thread_template->message->date_sent ) ) ) );
      	}
      
      function bp_the_thread_message_content() {
      	echo bp_get_the_thread_message_content();
      }
      	function bp_get_the_thread_message_content() {
      		global $thread_template;
      
      		return apply_filters( 'bp_get_the_thread_message_content', $thread_template->message->message );
      	}
      
      /** Embeds *******************************************************************/
      
      /**
       * Enable oembed support for Messages.
       *
       * There's no caching as BP 1.5 does not have a Messages meta API.
       *
       * @see BP_Embed
      

Hook: add_filter: bp_get_the_thread_message_content instances (9)

  • add_filter( 'bp_get_the_thread_message_content', array( &$this, 'autoembed' ), 8 )
    $tag: bp_get_the_thread_message_content
    $function_to_add: array( &$this
    $priority: 0
    $accepted_args: 8

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-classes.php :: Trac Source Line: 1133
      			add_filter( 'bp_get_activity_content', array( &$this, 'run_shortcode' ), 7 );
      		}
      
      		if ( bp_use_embed_in_forum_posts() ) {
      			add_filter( 'bp_get_the_topic_post_content', array( &$this, 'autoembed' ), 8 );
      			add_filter( 'bp_get_the_topic_post_content', array( &$this, 'run_shortcode' ), 7 );
      		}
      
      		if ( bp_use_embed_in_private_messages() ) {
      			add_filter( 'bp_get_the_thread_message_content', array( &$this, 'autoembed' ), 8 );
      			add_filter( 'bp_get_the_thread_message_content', array( &$this, 'run_shortcode' ), 7 );
      		}
      
      		do_action_ref_array( 'bp_core_setup_oembed', array( &$this ) );
      	}
      
      	/**
      	 * The {@link do_shortcode()} callback function.
      	 *
      	 * Attempts to convert a URL into embed HTML. Starts by checking the URL against the regex of the registered embed handlers.
      
  • add_filter( 'bp_get_the_thread_message_content', array( &$this, 'run_shortcode' ), 7 )
    $tag: bp_get_the_thread_message_content
    $function_to_add: array( &$this
    $priority: 0
    $accepted_args: 7

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-classes.php :: Trac Source Line: 1134
      		}
      
      		if ( bp_use_embed_in_forum_posts() ) {
      			add_filter( 'bp_get_the_topic_post_content', array( &$this, 'autoembed' ), 8 );
      			add_filter( 'bp_get_the_topic_post_content', array( &$this, 'run_shortcode' ), 7 );
      		}
      
      		if ( bp_use_embed_in_private_messages() ) {
      			add_filter( 'bp_get_the_thread_message_content', array( &$this, 'autoembed' ), 8 );
      			add_filter( 'bp_get_the_thread_message_content', array( &$this, 'run_shortcode' ), 7 );
      		}
      
      		do_action_ref_array( 'bp_core_setup_oembed', array( &$this ) );
      	}
      
      	/**
      	 * The {@link do_shortcode()} callback function.
      	 *
      	 * Attempts to convert a URL into embed HTML. Starts by checking the URL against the regex of the registered embed handlers.
      	 * Next, checks the URL against the regex of registered {@link WP_oEmbed} providers if oEmbed discovery is false.
      
  • add_filter( 'bp_get_the_thread_message_content', 'wp_filter_kses', 1 )
    $tag: bp_get_the_thread_message_content
    $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: 12
      if ( !defined( 'ABSPATH' ) ) exit;
      
      /* Apply WordPress defined filters */
      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' );
      
    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-filters.php :: Trac Source Line: 19
      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( 'bp_get_message_notice_text', 'wptexturize' );
      add_filter( 'bp_get_message_thread_subject', 'wptexturize' );
      
  • add_filter( 'bp_get_the_thread_message_content', 'wptexturize' )
    $tag: bp_get_the_thread_message_content
    $function_to_add: wptexturize
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-filters.php :: Trac Source Line: 31
      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 );
      add_filter( 'bp_get_message_thread_excerpt', 'convert_smilies', 2 );
      add_filter( 'bp_get_the_thread_message_content', 'convert_smilies', 2 );
      
      add_filter( 'bp_get_message_notice_subject', 'convert_chars' );
      add_filter( 'bp_get_message_notice_text', 'convert_chars' );
      add_filter( 'bp_get_message_thread_subject', 'convert_chars' );
      
  • add_filter( 'bp_get_the_thread_message_content', 'convert_smilies', 2 )
    $tag: bp_get_the_thread_message_content
    $function_to_add: convert_smilies
    $priority: 2
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-filters.php :: Trac Source Line: 37
      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 );
      add_filter( 'bp_get_message_thread_excerpt', 'convert_smilies', 2 );
      add_filter( 'bp_get_the_thread_message_content', 'convert_smilies', 2 );
      
      add_filter( 'bp_get_message_notice_subject', 'convert_chars' );
      add_filter( 'bp_get_message_notice_text', 'convert_chars' );
      add_filter( 'bp_get_message_thread_subject', 'convert_chars' );
      add_filter( 'bp_get_message_thread_excerpt', 'convert_chars' );
      add_filter( 'bp_get_the_thread_message_content', 'convert_chars' );
      
      add_filter( 'bp_get_message_notice_text', 'make_clickable', 9 );
      add_filter( 'bp_get_message_thread_excerpt', 'make_clickable', 9 );
      add_filter( 'bp_get_the_thread_message_content', 'make_clickable', 9 );
      
  • add_filter( 'bp_get_the_thread_message_content', 'convert_chars' )
    $tag: bp_get_the_thread_message_content
    $function_to_add: convert_chars
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-filters.php :: Trac Source Line: 43
      add_filter( 'bp_get_message_notice_text', 'convert_smilies', 2 );
      add_filter( 'bp_get_message_thread_subject', 'convert_smilies', 2 );
      add_filter( 'bp_get_message_thread_excerpt', 'convert_smilies', 2 );
      add_filter( 'bp_get_the_thread_message_content', 'convert_smilies', 2 );
      
      add_filter( 'bp_get_message_notice_subject', 'convert_chars' );
      add_filter( 'bp_get_message_notice_text', 'convert_chars' );
      add_filter( 'bp_get_message_thread_subject', 'convert_chars' );
      add_filter( 'bp_get_message_thread_excerpt', 'convert_chars' );
      add_filter( 'bp_get_the_thread_message_content', 'convert_chars' );
      
      add_filter( 'bp_get_message_notice_text', 'make_clickable', 9 );
      add_filter( 'bp_get_message_thread_excerpt', 'make_clickable', 9 );
      add_filter( 'bp_get_the_thread_message_content', 'make_clickable', 9 );
      
      add_filter( 'bp_get_message_notice_text', 'wpautop' );
      add_filter( 'bp_get_the_thread_message_content', 'wpautop' );
      
      add_filter( 'bp_get_message_notice_subject', 'stripslashes_deep' );
      add_filter( 'bp_get_message_notice_text', 'stripslashes_deep' );
      
  • add_filter( 'bp_get_the_thread_message_content', 'make_clickable', 9 )
    $tag: bp_get_the_thread_message_content
    $function_to_add: make_clickable
    $priority: 9
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-filters.php :: Trac Source Line: 47
      add_filter( 'bp_get_message_notice_subject', 'convert_chars' );
      add_filter( 'bp_get_message_notice_text', 'convert_chars' );
      add_filter( 'bp_get_message_thread_subject', 'convert_chars' );
      add_filter( 'bp_get_message_thread_excerpt', 'convert_chars' );
      add_filter( 'bp_get_the_thread_message_content', 'convert_chars' );
      
      add_filter( 'bp_get_message_notice_text', 'make_clickable', 9 );
      add_filter( 'bp_get_message_thread_excerpt', 'make_clickable', 9 );
      add_filter( 'bp_get_the_thread_message_content', 'make_clickable', 9 );
      
      add_filter( 'bp_get_message_notice_text', 'wpautop' );
      add_filter( 'bp_get_the_thread_message_content', 'wpautop' );
      
      add_filter( 'bp_get_message_notice_subject', 'stripslashes_deep' );
      add_filter( 'bp_get_message_notice_text', 'stripslashes_deep' );
      add_filter( 'bp_get_message_thread_subject', 'stripslashes_deep' );
      add_filter( 'bp_get_message_thread_excerpt', 'stripslashes_deep' );
      add_filter( 'bp_get_messages_subject_value', 'stripslashes_deep' );
      add_filter( 'bp_get_messages_content_value', 'stripslashes_deep' );
      
  • add_filter( 'bp_get_the_thread_message_content', 'wpautop' )
    $tag: bp_get_the_thread_message_content
    $function_to_add: wpautop
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-filters.php :: Trac Source Line: 50
      add_filter( 'bp_get_message_thread_subject', 'convert_chars' );
      add_filter( 'bp_get_message_thread_excerpt', 'convert_chars' );
      add_filter( 'bp_get_the_thread_message_content', 'convert_chars' );
      
      add_filter( 'bp_get_message_notice_text', 'make_clickable', 9 );
      add_filter( 'bp_get_message_thread_excerpt', 'make_clickable', 9 );
      add_filter( 'bp_get_the_thread_message_content', 'make_clickable', 9 );
      
      add_filter( 'bp_get_message_notice_text', 'wpautop' );
      add_filter( 'bp_get_the_thread_message_content', 'wpautop' );
      
      add_filter( 'bp_get_message_notice_subject', 'stripslashes_deep' );
      add_filter( 'bp_get_message_notice_text', 'stripslashes_deep' );
      add_filter( 'bp_get_message_thread_subject', 'stripslashes_deep' );
      add_filter( 'bp_get_message_thread_excerpt', 'stripslashes_deep' );
      add_filter( 'bp_get_messages_subject_value', 'stripslashes_deep' );
      add_filter( 'bp_get_messages_content_value', 'stripslashes_deep' );
      add_filter( 'bp_get_the_thread_message_content', 'stripslashes_deep' );
      
      add_filter( 'bp_get_the_thread_message_content', 'stripslashes_deep' );
      
  • add_filter( 'bp_get_the_thread_message_content', 'stripslashes_deep' )
    $tag: bp_get_the_thread_message_content
    $function_to_add: stripslashes_deep
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-filters.php :: Trac Source Line: 58
      add_filter( 'bp_get_message_notice_text', 'wpautop' );
      add_filter( 'bp_get_the_thread_message_content', 'wpautop' );
      
      add_filter( 'bp_get_message_notice_subject', 'stripslashes_deep' );
      add_filter( 'bp_get_message_notice_text', 'stripslashes_deep' );
      
    • Component: BuddyPress :: bp-messages
      File: /bp-messages/bp-messages-filters.php :: Trac Source Line: 60
      add_filter( 'bp_get_message_notice_subject', 'stripslashes_deep' );
      add_filter( 'bp_get_message_notice_text', 'stripslashes_deep' );
      

Comments are closed.