Changeset 6180 for trunk/src/includes/extend/buddypress/notifications.php
- Timestamp:
- 12/23/2016 02:48:33 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/extend/buddypress/notifications.php
r6141 r6180 1 1 <?php 2 3 /** 4 * bbPress BuddyPress Notifications 5 * 6 * @package bbPress 7 * @subpackage BuddyPress 8 */ 9 10 // Exit if accessed directly 11 defined( 'ABSPATH' ) || exit; 12 13 // Hooks 14 add_filter( 'bp_notifications_get_registered_components', 'bbp_filter_notifications_get_registered_components', 10 ); 15 add_filter( 'bp_notifications_get_notifications_for_user', 'bbp_format_buddypress_notifications', 10, 5 ); 16 add_action( 'bbp_new_reply', 'bbp_buddypress_add_notification', 10, 7 ); 17 add_action( 'bbp_get_request', 'bbp_buddypress_mark_notifications', 1 ); 18 19 /** BuddyPress Helpers ********************************************************/ 2 20 3 21 /** … … 24 42 return $component_names; 25 43 } 26 add_filter( 'bp_notifications_get_registered_components', 'bbp_filter_notifications_get_registered_components', 10 );27 44 28 45 /** … … 80 97 return $return; 81 98 } 82 add_filter( 'bp_notifications_get_notifications_for_user', 'bbp_format_buddypress_notifications', 10, 5 );83 99 84 100 /** … … 127 143 bp_notifications_add_notification( $args ); 128 144 } 129 145 130 146 // Notify the immediate reply author if not the current reply author 131 147 if ( ! empty( $reply_to ) && ( $author_id !== $reply_to_item_id ) ) { … … 135 151 } 136 152 } 137 add_action( 'bbp_new_reply', 'bbp_buddypress_add_notification', 10, 7 );138 153 139 154 /** … … 185 200 bbp_redirect( $redirect ); 186 201 } 187 add_action( 'bbp_get_request', 'bbp_buddypress_mark_notifications', 1 );
Note: See TracChangeset
for help on using the changeset viewer.