apply_filters( "bp_xprofile_{$action}_notification", string $notification, int $item_id, int $secondary_item_id, int $total_items, string $format )

Allows plugins to filter extended profile-related custom notifications.

Description

Notifications must have a ‘component_name’ of ‘xprofile’ to be routed to this function.

Parameters

$notification

(string) Null value.

$item_id

(int) The primary item ID.

$secondary_item_id

(int) The secondary item ID.

$total_items

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

$format

(string) 'string' for BuddyBar-compatible notifications; 'array' for WP Toolbar.

Source

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

Changelog

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