bp_get_the_notification_component_name()
Return the name of the component associated with the notification currently being iterated on.
Description Description
Return Return
(int) Name of the component associated with the current notification.
Source Source
File: bp-notifications/bp-notifications-template.php
function bp_get_the_notification_component_name() { /** * Filters the name of the component associated with the notification currently being iterated on. * * @since 1.9.0 * * @param int $component_name Name of the component associated with the current notification. */ return apply_filters( 'bp_get_the_notification_component_name', buddypress()->notifications->query_loop->notification->component_name ); }
Changelog Changelog
Version | Description |
---|---|
1.9.0 | Introduced. |