bp_get_the_topic_latest_post_excerpt

  • apply_filters( 'bp_get_the_topic_latest_post_excerpt', $post, $length )

    Source Reference:

    • Component: BuddyPress :: bp-forums
      File: /bp-forums/bp-forums-template.php :: Trac Source Line: 758
      			'length' => 225
      		);
      
      		$r = wp_parse_args( $args, $defaults );
      		extract( $r, EXTR_SKIP );
      
      		$post = bp_forums_get_post( $forum_template->topic->topic_last_post_id );
      		$post = bp_create_excerpt( $post->post_text, $length );
      
      		return apply_filters( 'bp_get_the_topic_latest_post_excerpt', $post, $length );
      	}
      
      function bp_the_topic_time_since_last_post() {
      	echo bp_get_the_topic_time_since_last_post();
      }
      	function bp_get_the_topic_time_since_last_post() {
      		global $forum_template;
      
      		return apply_filters( 'bp_get_the_topic_time_since_last_post', bp_core_time_since( strtotime( $forum_template->topic->topic_time ) ) );
      	}
      

Hook: add_filter: bp_get_the_topic_latest_post_excerpt instances (7)

  • add_filter( 'bp_get_the_topic_latest_post_excerpt', 'bp_forums_filter_kses', 1 )
    $tag: bp_get_the_topic_latest_post_excerpt
    $function_to_add: bp_forums_filter_kses
    $priority: 1
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-forums
      File: /bp-forums/bp-forums-filters.php :: Trac Source Line: 10
      <?php
      // Exit if accessed directly
      if ( !defined( 'ABSPATH' ) ) exit;
      
      /* Apply WordPress defined filters */
      add_filter( 'bp_forums_bbconfig_location', 'wp_filter_kses', 1 );
      add_filter( 'bp_forums_bbconfig_location', 'esc_attr', 1 );
      
      add_filter( 'bp_get_the_topic_title', 'wp_filter_kses', 1 );
      add_filter( 'bp_get_the_topic_latest_post_excerpt', 'bp_forums_filter_kses', 1 );
      add_filter( 'bp_get_the_topic_post_content', 'bp_forums_filter_kses', 1 );
      
      add_filter( 'bp_get_the_topic_title', 'force_balance_tags' );
      add_filter( 'bp_get_the_topic_latest_post_excerpt', 'force_balance_tags' );
      add_filter( 'bp_get_the_topic_post_content', 'force_balance_tags' );
      
      add_filter( 'bp_get_the_topic_title', 'wptexturize' );
      add_filter( 'bp_get_the_topic_poster_name', 'wptexturize' );
      add_filter( 'bp_get_the_topic_last_poster_name', 'wptexturize' );
      add_filter( 'bp_get_the_topic_post_content', 'wptexturize' );
      
  • add_filter( 'bp_get_the_topic_latest_post_excerpt', 'force_balance_tags' )
    $tag: bp_get_the_topic_latest_post_excerpt
    $function_to_add: force_balance_tags
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-forums
      File: /bp-forums/bp-forums-filters.php :: Trac Source Line: 14
      /* Apply WordPress defined filters */
      add_filter( 'bp_forums_bbconfig_location', 'wp_filter_kses', 1 );
      add_filter( 'bp_forums_bbconfig_location', 'esc_attr', 1 );
      
      add_filter( 'bp_get_the_topic_title', 'wp_filter_kses', 1 );
      add_filter( 'bp_get_the_topic_latest_post_excerpt', 'bp_forums_filter_kses', 1 );
      add_filter( 'bp_get_the_topic_post_content', 'bp_forums_filter_kses', 1 );
      
      add_filter( 'bp_get_the_topic_title', 'force_balance_tags' );
      add_filter( 'bp_get_the_topic_latest_post_excerpt', 'force_balance_tags' );
      add_filter( 'bp_get_the_topic_post_content', 'force_balance_tags' );
      
      add_filter( 'bp_get_the_topic_title', 'wptexturize' );
      add_filter( 'bp_get_the_topic_poster_name', 'wptexturize' );
      add_filter( 'bp_get_the_topic_last_poster_name', 'wptexturize' );
      add_filter( 'bp_get_the_topic_post_content', 'wptexturize' );
      add_filter( 'bp_get_the_topic_post_poster_name', 'wptexturize' );
      
      add_filter( 'bp_get_the_topic_title', 'convert_smilies' );
      add_filter( 'bp_get_the_topic_latest_post_excerpt', 'convert_smilies' );
      
  • add_filter( 'bp_get_the_topic_latest_post_excerpt', 'convert_smilies' )
    $tag: bp_get_the_topic_latest_post_excerpt
    $function_to_add: convert_smilies
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-forums
      File: /bp-forums/bp-forums-filters.php :: Trac Source Line: 24
      add_filter( 'bp_get_the_topic_post_content', 'force_balance_tags' );
      
      add_filter( 'bp_get_the_topic_title', 'wptexturize' );
      add_filter( 'bp_get_the_topic_poster_name', 'wptexturize' );
      add_filter( 'bp_get_the_topic_last_poster_name', 'wptexturize' );
      add_filter( 'bp_get_the_topic_post_content', 'wptexturize' );
      add_filter( 'bp_get_the_topic_post_poster_name', 'wptexturize' );
      
      add_filter( 'bp_get_the_topic_title', 'convert_smilies' );
      add_filter( 'bp_get_the_topic_latest_post_excerpt', 'convert_smilies' );
      add_filter( 'bp_get_the_topic_post_content', 'convert_smilies' );
      
      add_filter( 'bp_get_the_topic_title', 'convert_chars' );
      add_filter( 'bp_get_the_topic_latest_post_excerpt', 'convert_chars' );
      add_filter( 'bp_get_the_topic_post_content', 'convert_chars' );
      
      add_filter( 'bp_get_the_topic_post_content', 'wpautop' );
      add_filter( 'bp_get_the_topic_latest_post_excerpt', 'wpautop' );
      
      add_filter( 'bp_get_the_topic_post_content', 'stripslashes_deep' );
      
  • add_filter( 'bp_get_the_topic_latest_post_excerpt', 'convert_chars' )
    $tag: bp_get_the_topic_latest_post_excerpt
    $function_to_add: convert_chars
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-forums
      File: /bp-forums/bp-forums-filters.php :: Trac Source Line: 28
      add_filter( 'bp_get_the_topic_last_poster_name', 'wptexturize' );
      add_filter( 'bp_get_the_topic_post_content', 'wptexturize' );
      add_filter( 'bp_get_the_topic_post_poster_name', 'wptexturize' );
      
      add_filter( 'bp_get_the_topic_title', 'convert_smilies' );
      add_filter( 'bp_get_the_topic_latest_post_excerpt', 'convert_smilies' );
      add_filter( 'bp_get_the_topic_post_content', 'convert_smilies' );
      
      add_filter( 'bp_get_the_topic_title', 'convert_chars' );
      add_filter( 'bp_get_the_topic_latest_post_excerpt', 'convert_chars' );
      add_filter( 'bp_get_the_topic_post_content', 'convert_chars' );
      
      add_filter( 'bp_get_the_topic_post_content', 'wpautop' );
      add_filter( 'bp_get_the_topic_latest_post_excerpt', 'wpautop' );
      
      add_filter( 'bp_get_the_topic_post_content', 'stripslashes_deep' );
      add_filter( 'bp_get_the_topic_title', 'stripslashes_deep' );
      add_filter( 'bp_get_the_topic_latest_post_excerpt', 'stripslashes_deep' );
      add_filter( 'bp_get_the_topic_poster_name', 'stripslashes_deep' );
      add_filter( 'bp_get_the_topic_last_poster_name', 'stripslashes_deep' );
      
  • add_filter( 'bp_get_the_topic_latest_post_excerpt', 'wpautop' )
    $tag: bp_get_the_topic_latest_post_excerpt
    $function_to_add: wpautop
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-forums
      File: /bp-forums/bp-forums-filters.php :: Trac Source Line: 32
      add_filter( 'bp_get_the_topic_title', 'convert_smilies' );
      add_filter( 'bp_get_the_topic_latest_post_excerpt', 'convert_smilies' );
      add_filter( 'bp_get_the_topic_post_content', 'convert_smilies' );
      
      add_filter( 'bp_get_the_topic_title', 'convert_chars' );
      add_filter( 'bp_get_the_topic_latest_post_excerpt', 'convert_chars' );
      add_filter( 'bp_get_the_topic_post_content', 'convert_chars' );
      
      add_filter( 'bp_get_the_topic_post_content', 'wpautop' );
      add_filter( 'bp_get_the_topic_latest_post_excerpt', 'wpautop' );
      
      add_filter( 'bp_get_the_topic_post_content', 'stripslashes_deep' );
      add_filter( 'bp_get_the_topic_title', 'stripslashes_deep' );
      add_filter( 'bp_get_the_topic_latest_post_excerpt', 'stripslashes_deep' );
      add_filter( 'bp_get_the_topic_poster_name', 'stripslashes_deep' );
      add_filter( 'bp_get_the_topic_last_poster_name', 'stripslashes_deep' );
      add_filter( 'bp_get_the_topic_object_name', 'stripslashes_deep' );
      
      add_filter( 'bp_get_the_topic_post_content', 'make_clickable', 9 );
      
  • add_filter( 'bp_get_the_topic_latest_post_excerpt', 'stripslashes_deep' )
    $tag: bp_get_the_topic_latest_post_excerpt
    $function_to_add: stripslashes_deep
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-forums
      File: /bp-forums/bp-forums-filters.php :: Trac Source Line: 36
      add_filter( 'bp_get_the_topic_title', 'convert_chars' );
      add_filter( 'bp_get_the_topic_latest_post_excerpt', 'convert_chars' );
      add_filter( 'bp_get_the_topic_post_content', 'convert_chars' );
      
      add_filter( 'bp_get_the_topic_post_content', 'wpautop' );
      add_filter( 'bp_get_the_topic_latest_post_excerpt', 'wpautop' );
      
      add_filter( 'bp_get_the_topic_post_content', 'stripslashes_deep' );
      add_filter( 'bp_get_the_topic_title', 'stripslashes_deep' );
      add_filter( 'bp_get_the_topic_latest_post_excerpt', 'stripslashes_deep' );
      add_filter( 'bp_get_the_topic_poster_name', 'stripslashes_deep' );
      add_filter( 'bp_get_the_topic_last_poster_name', 'stripslashes_deep' );
      add_filter( 'bp_get_the_topic_object_name', 'stripslashes_deep' );
      
      add_filter( 'bp_get_the_topic_post_content', 'make_clickable', 9 );
      
      add_filter( 'bp_get_forum_topic_count_for_user', 'bp_core_number_format' );
      add_filter( 'bp_get_forum_topic_count', 'bp_core_number_format' );
      
      add_filter( 'bp_get_the_topic_title', 'bp_forums_make_nofollow_filter' );
      
  • add_filter( 'bp_get_the_topic_latest_post_excerpt', 'bp_forums_make_nofollow_filter' )
    $tag: bp_get_the_topic_latest_post_excerpt
    $function_to_add: bp_forums_make_nofollow_filter
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-forums
      File: /bp-forums/bp-forums-filters.php :: Trac Source Line: 47
      add_filter( 'bp_get_the_topic_last_poster_name', 'stripslashes_deep' );
      add_filter( 'bp_get_the_topic_object_name', 'stripslashes_deep' );
      
      add_filter( 'bp_get_the_topic_post_content', 'make_clickable', 9 );
      
      add_filter( 'bp_get_forum_topic_count_for_user', 'bp_core_number_format' );
      add_filter( 'bp_get_forum_topic_count', 'bp_core_number_format' );
      
      add_filter( 'bp_get_the_topic_title', 'bp_forums_make_nofollow_filter' );
      add_filter( 'bp_get_the_topic_latest_post_excerpt', 'bp_forums_make_nofollow_filter' );
      add_filter( 'bp_get_the_topic_post_content', 'bp_forums_make_nofollow_filter' );
      
      function bp_forums_filter_kses( $content ) {
      	global $allowedtags;
      
      	$forums_allowedtags = $allowedtags;
      	$forums_allowedtags['span'] = array();
      	$forums_allowedtags['span']['class'] = array();
      	$forums_allowedtags['div'] = array();
      	$forums_allowedtags['div']['class'] = array();
      

Comments are closed.