apply_filters( 'bp_activity_set_action', array $array, string $component_id, string $type, string $description, callable $format_callback, string $label, array $context )

Filters the action type being set for the current activity item.

Description

Parameters

$array

Array of arguments for action type being set.

$component_id

ID of the current component being set.

$type

Action type being set.

$description

Action description for action being set.

$format_callback

Callback for formatting the action string.

$label

String to describe this action in the activity feed filter dropdown.

$context

Activity feed contexts where the filter should appear. 'activity', 'member', 'member_groups', 'group'.

Source

File: bp-activity/bp-activity-functions.php

Changelog

Changelog
Version Description
BuddyPress 1.1.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.