bp_activity_add with youzify.
-
This code works find in buddypress, When I activate youzify, the user activity posts to the main activity stream no longer state "user posted in group" it just say "user posted"
May I have some guidance please?
// Format the action for the activity
$action = sprintf(
'%s posted in the group %s',
bp_core_get_userlink($random_user->user_id),
'<a href="' . $group_link . '">' . esc_html($group_name) . '</a>'
);
// Add activity with the formatted action
bp_activity_add(array(
'user_id' => $random_user->user_id,
'action' => apply_filters('bp_custom_group_activity_action', $action),
'content' => $post_content,
'component' => 'groups',
'type' => 'activity_update',
'item_id' => $group_id,
));
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.