BP_Akismet::get_activity_types()

Get a filterable list of activity types that Akismet should automatically check for spam.

Description

Return

(array) $value List of activity types.

Source

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

	public static function get_activity_types() {

		/**
		 * Filters the list of activity types that Akismet should automatically check for spam.
		 *
		 * @since BuddyPress 1.6.0
		 *
		 * @param array $value Array of default activity types for Akismet to check.
		 */
		return apply_filters( 'bp_akismet_get_activity_types', array( 'activity_comment', 'activity_update' ) );
	}

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.