do_action( 'bp_activity_akismet_mark_as_spam', BP_Activity_Activity $activity, string $source )

Fires after marking an activity item has been marked as spam.

Description

Parameters

$activity

(BP_Activity_Activity) Activity object being marked as spam.

$source

(string) Source of the whom marked as spam. Either "by_a_person" (e.g. a person has manually marked the activity as spam) or "by_akismet".

Source

File: bp-activity/classes/class-bp-akismet.php

Changelog

Changelog
Version Description
BuddyPress 1.6.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.