Filter activity action
-
I’m looking to filter the activity item to remove ‘posted an update’, so that it only states the user’s display name with ‘time-since’ breaking onto the next line.
I found this snippet by Boone, but I’m struggling to make it work and so far have only managed to strip out the post meta entirely with te exception of ‘said:’ – any help would be massively appreciated.
function my_format_activity_action($activity_action, $post_id, $post_text, &$topic) { $action = $post_text->topic_poster_name . " said:"; return $action; } add_filter( 'groups_activity_new_forum_topic_action', 'my_format_activity_action', 1, 4 );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.