Modifying excerpt length on SWA

de | 16 juillet 2014

Modifier la longueur des extraits affichés sur le fil d’activité. Par défaut, 358 caractères, espaces inclus.
Modifying the exerpt length on the activity feed. By default 358 characters, including spaces.

function bpfr_custom_excerpt_length( $excerpt_length) {
	$excerpt_length = '200'; // change value to your need	
	return $excerpt_length;  
	
} 
add_filter( 'bp_activity_excerpt_length', 'bpfr_custom_excerpt_length', 10, 1);

Code reference: bp-activity-filters.php:358

Partagez...Tweet about this on TwitterShare on Google+Share on FacebookEmail this to someone