bp_get_activity_latest_update_excerpt

  • apply_filters( 'bp_get_activity_latest_update_excerpt', sprintf( _x( '- "%s "', 'member latest update in member directory', 'buddypress' ), trim( strip_tags( bp_create_excerpt( $update['content'], $length ) ) ) ) )

    Source Reference:

    • Component: BuddyPress :: bp-members
      File: /bp-members/bp-members-template.php :: Trac Source Line: 583
      			'view_link' => true
      		);
      
      		$r = wp_parse_args( $args, $defaults );
      		extract( $r );
      
      		if ( empty( $members_template->member->latest_update ) || !$update = maybe_unserialize( $members_template->member->latest_update ) )
      			return false;
      
      		$update_content = apply_filters( 'bp_get_activity_latest_update_excerpt', sprintf( _x( '- "%s "', 'member latest update in member directory', 'buddypress' ), trim( strip_tags( bp_create_excerpt( $update['content'], $length ) ) ) ) );
      
      		// If $view_link is true and the text returned by bp_create_excerpt() is different from the original text (ie it's
      		// been truncated), add the "View" link.
      		if ( $view_link && ( $update_content != $update['content'] ) ) {
      			$view = __( 'View', 'buddypress' );
      
      			$update_content .= '<span class="activity-read-more"><a href="' . bp_activity_get_permalink( $update['id'] ) . '" rel="nofollow">' . $view . '</a></span>';
      		}
      
      		return apply_filters( 'bp_get_member_latest_update', $update_content );
      
  • apply_filters( 'bp_get_activity_latest_update_excerpt', trim( strip_tags( bp_create_excerpt( $update['content'], 358 ) ) ) )

    Source Reference:

    • Component: BuddyPress :: bp-activity
      File: /bp-activity/bp-activity-template.php :: Trac Source Line: 2052
      		if ( !$user_id )
      			$user_id = $bp->displayed_user->id;
      
      		if ( bp_core_is_user_spammer( $user_id ) || bp_core_is_user_deleted( $user_id ) )
      			return false;
      
      		if ( !$update = bp_get_user_meta( $user_id, 'bp_latest_update', true ) )
      			return false;
      
      		$latest_update = apply_filters( 'bp_get_activity_latest_update_excerpt', trim( strip_tags( bp_create_excerpt( $update['content'], 358 ) ) ) );
      		$latest_update .= ' <a href="' . bp_get_root_domain() . '/' . bp_get_activity_root_slug() . '/p/' . $update['id'] . '/"> ' . __( 'View', 'buddypress' ) . '</a>';
      
      		return apply_filters( 'bp_get_activity_latest_update', $latest_update  );
      	}
      
      /**
       * Display the activity filter links.
       *
       * @since 1.1.0
       *
      

Hook: add_filter: bp_get_activity_latest_update_excerpt instances (8)

  • add_filter( 'bp_get_activity_latest_update_excerpt', 'bp_activity_filter_kses', 1 )
    $tag: bp_get_activity_latest_update_excerpt
    $function_to_add: bp_activity_filter_kses
    $priority: 1
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-activity
      File: /bp-activity/bp-activity-filters.php :: Trac Source Line: 19
      // Exit if accessed directly
      if ( !defined( 'ABSPATH' ) ) exit;
      
      // Apply WordPress defined filters
      add_filter( 'bp_get_activity_action',                'bp_activity_filter_kses', 1 );
      add_filter( 'bp_get_activity_content_body',          'bp_activity_filter_kses', 1 );
      add_filter( 'bp_get_activity_content',               'bp_activity_filter_kses', 1 );
      add_filter( 'bp_get_activity_parent_content',        'bp_activity_filter_kses', 1 );
      add_filter( 'bp_get_activity_latest_update',         'bp_activity_filter_kses', 1 );
      add_filter( 'bp_get_activity_latest_update_excerpt', 'bp_activity_filter_kses', 1 );
      add_filter( 'bp_get_activity_feed_item_description', 'bp_activity_filter_kses', 1 );
      add_filter( 'bp_activity_content_before_save',       'bp_activity_filter_kses', 1 );
      add_filter( 'bp_activity_action_before_save',        'bp_activity_filter_kses', 1 );
      
      add_filter( 'bp_get_activity_action',                'force_balance_tags' );
      add_filter( 'bp_get_activity_content_body',          'force_balance_tags' );
      add_filter( 'bp_get_activity_content',               'force_balance_tags' );
      add_filter( 'bp_get_activity_latest_update',         'force_balance_tags' );
      add_filter( 'bp_get_activity_latest_update_excerpt', 'force_balance_tags' );
      add_filter( 'bp_get_activity_feed_item_description', 'force_balance_tags' );
      
  • add_filter( 'bp_get_activity_latest_update_excerpt', 'force_balance_tags' )
    $tag: bp_get_activity_latest_update_excerpt
    $function_to_add: force_balance_tags
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-activity
      File: /bp-activity/bp-activity-filters.php :: Trac Source Line: 28
      add_filter( 'bp_get_activity_latest_update_excerpt', 'bp_activity_filter_kses', 1 );
      add_filter( 'bp_get_activity_feed_item_description', 'bp_activity_filter_kses', 1 );
      add_filter( 'bp_activity_content_before_save',       'bp_activity_filter_kses', 1 );
      add_filter( 'bp_activity_action_before_save',        'bp_activity_filter_kses', 1 );
      
      add_filter( 'bp_get_activity_action',                'force_balance_tags' );
      add_filter( 'bp_get_activity_content_body',          'force_balance_tags' );
      add_filter( 'bp_get_activity_content',               'force_balance_tags' );
      add_filter( 'bp_get_activity_latest_update',         'force_balance_tags' );
      add_filter( 'bp_get_activity_latest_update_excerpt', 'force_balance_tags' );
      add_filter( 'bp_get_activity_feed_item_description', 'force_balance_tags' );
      add_filter( 'bp_activity_content_before_save',       'force_balance_tags' );
      add_filter( 'bp_activity_action_before_save',        'force_balance_tags' );
      
      add_filter( 'bp_get_activity_action',                'wptexturize' );
      add_filter( 'bp_get_activity_content_body',          'wptexturize' );
      add_filter( 'bp_get_activity_content',               'wptexturize' );
      add_filter( 'bp_get_activity_parent_content',        'wptexturize' );
      add_filter( 'bp_get_activity_latest_update',         'wptexturize' );
      add_filter( 'bp_get_activity_latest_update_excerpt', 'wptexturize' );
      
  • add_filter( 'bp_get_activity_latest_update_excerpt', 'wptexturize' )
    $tag: bp_get_activity_latest_update_excerpt
    $function_to_add: wptexturize
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-activity
      File: /bp-activity/bp-activity-filters.php :: Trac Source Line: 38
      add_filter( 'bp_get_activity_feed_item_description', 'force_balance_tags' );
      add_filter( 'bp_activity_content_before_save',       'force_balance_tags' );
      add_filter( 'bp_activity_action_before_save',        'force_balance_tags' );
      
      add_filter( 'bp_get_activity_action',                'wptexturize' );
      add_filter( 'bp_get_activity_content_body',          'wptexturize' );
      add_filter( 'bp_get_activity_content',               'wptexturize' );
      add_filter( 'bp_get_activity_parent_content',        'wptexturize' );
      add_filter( 'bp_get_activity_latest_update',         'wptexturize' );
      add_filter( 'bp_get_activity_latest_update_excerpt', 'wptexturize' );
      
      add_filter( 'bp_get_activity_action',                'convert_smilies' );
      add_filter( 'bp_get_activity_content_body',          'convert_smilies' );
      add_filter( 'bp_get_activity_content',               'convert_smilies' );
      add_filter( 'bp_get_activity_parent_content',        'convert_smilies' );
      add_filter( 'bp_get_activity_latest_update',         'convert_smilies' );
      add_filter( 'bp_get_activity_latest_update_excerpt', 'convert_smilies' );
      
      add_filter( 'bp_get_activity_action',                'convert_chars' );
      add_filter( 'bp_get_activity_content_body',          'convert_chars' );
      
  • add_filter( 'bp_get_activity_latest_update_excerpt', 'convert_smilies' )
    $tag: bp_get_activity_latest_update_excerpt
    $function_to_add: convert_smilies
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-activity
      File: /bp-activity/bp-activity-filters.php :: Trac Source Line: 45
      add_filter( 'bp_get_activity_parent_content',        'wptexturize' );
      add_filter( 'bp_get_activity_latest_update',         'wptexturize' );
      add_filter( 'bp_get_activity_latest_update_excerpt', 'wptexturize' );
      
      add_filter( 'bp_get_activity_action',                'convert_smilies' );
      add_filter( 'bp_get_activity_content_body',          'convert_smilies' );
      add_filter( 'bp_get_activity_content',               'convert_smilies' );
      add_filter( 'bp_get_activity_parent_content',        'convert_smilies' );
      add_filter( 'bp_get_activity_latest_update',         'convert_smilies' );
      add_filter( 'bp_get_activity_latest_update_excerpt', 'convert_smilies' );
      
      add_filter( 'bp_get_activity_action',                'convert_chars' );
      add_filter( 'bp_get_activity_content_body',          'convert_chars' );
      add_filter( 'bp_get_activity_content',               'convert_chars' );
      add_filter( 'bp_get_activity_parent_content',        'convert_chars' );
      add_filter( 'bp_get_activity_latest_update',         'convert_chars' );
      add_filter( 'bp_get_activity_latest_update_excerpt', 'convert_chars' );
      
      add_filter( 'bp_get_activity_action',                'wpautop' );
      add_filter( 'bp_get_activity_content_body',          'wpautop' );
      
  • add_filter( 'bp_get_activity_latest_update_excerpt', 'convert_chars' )
    $tag: bp_get_activity_latest_update_excerpt
    $function_to_add: convert_chars
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-activity
      File: /bp-activity/bp-activity-filters.php :: Trac Source Line: 52
      add_filter( 'bp_get_activity_parent_content',        'convert_smilies' );
      add_filter( 'bp_get_activity_latest_update',         'convert_smilies' );
      add_filter( 'bp_get_activity_latest_update_excerpt', 'convert_smilies' );
      
      add_filter( 'bp_get_activity_action',                'convert_chars' );
      add_filter( 'bp_get_activity_content_body',          'convert_chars' );
      add_filter( 'bp_get_activity_content',               'convert_chars' );
      add_filter( 'bp_get_activity_parent_content',        'convert_chars' );
      add_filter( 'bp_get_activity_latest_update',         'convert_chars' );
      add_filter( 'bp_get_activity_latest_update_excerpt', 'convert_chars' );
      
      add_filter( 'bp_get_activity_action',                'wpautop' );
      add_filter( 'bp_get_activity_content_body',          'wpautop' );
      add_filter( 'bp_get_activity_content',               'wpautop' );
      add_filter( 'bp_get_activity_feed_item_description', 'wpautop' );
      
      add_filter( 'bp_get_activity_action',                'make_clickable', 9 );
      add_filter( 'bp_get_activity_content_body',          'make_clickable', 9 );
      add_filter( 'bp_get_activity_content',               'make_clickable', 9 );
      add_filter( 'bp_get_activity_parent_content',        'make_clickable', 9 );
      
  • add_filter( 'bp_get_activity_latest_update_excerpt', 'make_clickable', 9 )
    $tag: bp_get_activity_latest_update_excerpt
    $function_to_add: make_clickable
    $priority: 9
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-activity
      File: /bp-activity/bp-activity-filters.php :: Trac Source Line: 64
      add_filter( 'bp_get_activity_content_body',          'wpautop' );
      add_filter( 'bp_get_activity_content',               'wpautop' );
      add_filter( 'bp_get_activity_feed_item_description', 'wpautop' );
      
      add_filter( 'bp_get_activity_action',                'make_clickable', 9 );
      add_filter( 'bp_get_activity_content_body',          'make_clickable', 9 );
      add_filter( 'bp_get_activity_content',               'make_clickable', 9 );
      add_filter( 'bp_get_activity_parent_content',        'make_clickable', 9 );
      add_filter( 'bp_get_activity_latest_update',         'make_clickable', 9 );
      add_filter( 'bp_get_activity_latest_update_excerpt', 'make_clickable', 9 );
      add_filter( 'bp_get_activity_feed_item_description', 'make_clickable', 9 );
      
      add_filter( 'bp_acomment_name',                      'stripslashes_deep' );
      add_filter( 'bp_get_activity_action',                'stripslashes_deep' );
      add_filter( 'bp_get_activity_content',               'stripslashes_deep' );
      add_filter( 'bp_get_activity_content_body',          'stripslashes_deep' );
      add_filter( 'bp_get_activity_parent_content',        'stripslashes_deep' );
      add_filter( 'bp_get_activity_latest_update',         'stripslashes_deep' );
      add_filter( 'bp_get_activity_latest_update_excerpt', 'stripslashes_deep' );
      add_filter( 'bp_get_activity_feed_item_description', 'stripslashes_deep' );
      
  • add_filter( 'bp_get_activity_latest_update_excerpt', 'stripslashes_deep' )
    $tag: bp_get_activity_latest_update_excerpt
    $function_to_add: stripslashes_deep
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-activity
      File: /bp-activity/bp-activity-filters.php :: Trac Source Line: 73
      add_filter( 'bp_get_activity_latest_update_excerpt', 'make_clickable', 9 );
      add_filter( 'bp_get_activity_feed_item_description', 'make_clickable', 9 );
      
      add_filter( 'bp_acomment_name',                      'stripslashes_deep' );
      add_filter( 'bp_get_activity_action',                'stripslashes_deep' );
      add_filter( 'bp_get_activity_content',               'stripslashes_deep' );
      add_filter( 'bp_get_activity_content_body',          'stripslashes_deep' );
      add_filter( 'bp_get_activity_parent_content',        'stripslashes_deep' );
      add_filter( 'bp_get_activity_latest_update',         'stripslashes_deep' );
      add_filter( 'bp_get_activity_latest_update_excerpt', 'stripslashes_deep' );
      add_filter( 'bp_get_activity_feed_item_description', 'stripslashes_deep' );
      
      // Apply BuddyPress defined filters
      add_filter( 'bp_get_activity_content',               'bp_activity_make_nofollow_filter' );
      add_filter( 'bp_get_activity_content_body',          'bp_activity_make_nofollow_filter' );
      add_filter( 'bp_get_activity_parent_content',        'bp_activity_make_nofollow_filter' );
      add_filter( 'bp_get_activity_latest_update',         'bp_activity_make_nofollow_filter' );
      add_filter( 'bp_get_activity_latest_update_excerpt', 'bp_activity_make_nofollow_filter' );
      add_filter( 'bp_get_activity_feed_item_description', 'bp_activity_make_nofollow_filter' );
      
  • add_filter( 'bp_get_activity_latest_update_excerpt', 'bp_activity_make_nofollow_filter' )
    $tag: bp_get_activity_latest_update_excerpt
    $function_to_add: bp_activity_make_nofollow_filter
    $priority: 0
    $accepted_args: 0

    Source Reference:

    • Component: BuddyPress :: bp-activity
      File: /bp-activity/bp-activity-filters.php :: Trac Source Line: 81
      add_filter( 'bp_get_activity_latest_update',         'stripslashes_deep' );
      add_filter( 'bp_get_activity_latest_update_excerpt', 'stripslashes_deep' );
      add_filter( 'bp_get_activity_feed_item_description', 'stripslashes_deep' );
      
      // Apply BuddyPress defined filters
      add_filter( 'bp_get_activity_content',               'bp_activity_make_nofollow_filter' );
      add_filter( 'bp_get_activity_content_body',          'bp_activity_make_nofollow_filter' );
      add_filter( 'bp_get_activity_parent_content',        'bp_activity_make_nofollow_filter' );
      add_filter( 'bp_get_activity_latest_update',         'bp_activity_make_nofollow_filter' );
      add_filter( 'bp_get_activity_latest_update_excerpt', 'bp_activity_make_nofollow_filter' );
      add_filter( 'bp_get_activity_feed_item_description', 'bp_activity_make_nofollow_filter' );
      
      add_filter( 'pre_comment_content',                   'bp_activity_at_name_filter' );
      add_filter( 'group_forum_topic_text_before_save',    'bp_activity_at_name_filter' );
      add_filter( 'group_forum_post_text_before_save',     'bp_activity_at_name_filter' );
      
      add_filter( 'bp_get_activity_parent_content',        'bp_create_excerpt' );
      
      /**
       * Custom kses filtering for activity content
      

Comments are closed.