@graeme_bryson
Active 8 years, 4 months ago
-
Skyrie replied to the topic Filter activity action in the forum How-to & Troubleshooting 6 years, 10 months ago
@graeme_bryson and for anyone else who wants to know, this code should work!
function my_activity_posted_by_action( $action, $activity ) {
$action = sprintf( __( '%s', 'buddypress' ), bp_core_get_userlink( $activity->user_id ) );
return $action;
}
add_filter( 'bp_activity_new_update_action', 'my_activity_posted_by_action', 1, 2…