Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/08/2016 02:38:06 AM (8 years ago)
Author:
boonebgorges
Message:

Introduce bp_activity_excerpt_length().

This function provides a centralized filter for controlling
the length of activity excerpts generated throughout BP.

Props sanket.parmar.
Fixes #7321.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-template.php

    r11091 r11280  
    26982698         * @param int    $user_id ID of the queried user.
    26992699         */
    2700         $latest_update = apply_filters( 'bp_get_activity_latest_update_excerpt', trim( strip_tags( bp_create_excerpt( $update['content'], 358 ) ) ), $user_id );
     2700        $latest_update = apply_filters( 'bp_get_activity_latest_update_excerpt', trim( strip_tags( bp_create_excerpt( $update['content'], bp_activity_get_excerpt_length() ) ) ), $user_id );
    27012701
    27022702        $latest_update = sprintf(
Note: See TracChangeset for help on using the changeset viewer.