Skip to content

Instantly share code, notes, and snippets.

@KaineLabs
Created November 19, 2019 17:21
Show Gist options
  • Save KaineLabs/ffc6fd2d61ab8c286c2c9bffd5b8b119 to your computer and use it in GitHub Desktop.
Save KaineLabs/ffc6fd2d61ab8c286c2c9bffd5b8b119 to your computer and use it in GitHub Desktop.
Change Activity Excerpt Words Length
<?php
/**
* Change Activity Excerpt Words Length
*/
function yzc_change_activity_excerpt_length() {
// By default it's : 358 Character length.
return 400;
}
add_filter( 'bp_activity_excerpt_length', 'yzc_change_activity_excerpt_length' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment