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

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

Description

Parameters

$activity

(BP_Activity_Activity) Activity object being marked as ham.

$source

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

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.