Re: Filter of Function / Theme or Plugin
I’m not sure what you mean by reformatting “to a stacked output”, but you can definitely modify the output of bp_activity_action() without modifying the core BP files. In your theme’s functions.php, try a function like the following:
`function holt_modify_action( $action, $activity ) {
// $action is the unmodified action text produced by BP.
// $activity is a structured object with information about the activity
// Use those two values to concatenate whatever value you’d like, and then return it like this:
return $my_action;
}
add_filter( ‘bp_get_activity_action’, ‘holt_modify_action’, 10, 2 );`