How to add an error or notification to an activity?
With enough digging I figured it out. First off you must save your error message to as activity meta data like so: public function send_team_notification($activity) { $message = $this->send_custom_notification($activity->content); if(is_wp_error($message)){ bp_activity_update_meta( $activity->id, ‘custom_error’, $message ); } } This will appear in the database under the wp_bp_activity_meta table like so: From there you can either manually … Read more