Skip to:
Content
Pages
Categories
Search
Top
Bottom

Can I make the member update excerpts longer?


  • sparklogix
    Member

    @mybenson

    On the Members page, where it lists all members and their status updates, it currently cuts off the update and has a “view” link to finish reading the update. Is there a way to turn off the excerpt and let the full update show, or at least lengthen the excerpt? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

  • r-a-y
    Keymaster

    @r-a-y

    If you’re familiar with WordPress filters, there’s a filter you can hook into to override the member excerpt – “bp_get_member_latest_update” (located in /plugins/buddypress/bp-core/bp-core-templatetags.php).

    If you’re new to WordPress plugin development, check out this codex article:
    https://codex.wordpress.org/Plugin_API#Filters


    sparklogix
    Member

    @mybenson

    Thanks, I found the line of code (line 376)

    `$update_content = apply_filters( ‘bp_get_activity_latest_update’, strip_tags( bp_create_excerpt( $update, $length ) ) );`

    and deleted `, $length` at the end and it worked perfectly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can I make the member update excerpts longer?’ is closed to new replies.
Skip to toolbar