bp_get_the_notification_id()

Return the ID of the notification currently being iterated on.

Description

Return

(int) ID of the current notification.

Source

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

304
305
306
307
308
309
310
311
312
313
314
function bp_get_the_notification_id() {
 
    /**
     * Filters the ID of the notification currently being iterated on.
     *
     * @since BuddyPress 1.9.0
     *
     * @param int $id ID of the notification being iterated on.
     */
    return apply_filters( 'bp_get_the_notification_id', buddypress()->notifications->query_loop->notification->id );
}

Changelog

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