do_action( 'friends_format_notifications', string $action, int $item_id, int $secondary_item_id, int $total_items, array|string $return )

Fires at the end of the bp-friends notification format callback.

Description

Parameters

$action

The kind of notification being rendered.

$item_id

The primary item ID.

$secondary_item_id

The secondary item ID.

$total_items

The total number of messaging-related notifications waiting for the user.

$return

Notification text string or array of link and text.

Source

File: bp-friends/bp-friends-notifications.php

Changelog

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