BP_Nouveau_Notifications::setup_filters()
Register add_filter() hooks
Source Source
File: bp-templates/bp-nouveau/includes/notifications/loader.php
protected function setup_filters() { add_filter( 'bp_nouveau_register_scripts', 'bp_nouveau_notifications_register_scripts', 10, 1 ); add_filter( 'bp_get_the_notification_mark_unread_link', 'bp_nouveau_notifications_mark_unread_link', 10, 1 ); add_filter( 'bp_get_the_notification_mark_read_link', 'bp_nouveau_notifications_mark_read_link', 10, 1 ); add_filter( 'bp_get_the_notification_delete_link', 'bp_nouveau_notifications_delete_link', 10, 1 ); // The number formatting is done into the `bp_nouveau_nav_count()` template tag. remove_filter( 'bp_notifications_get_total_notification_count', 'bp_core_number_format' ); }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |