Changeset 6180
- Timestamp:
- 12/23/2016 02:48:33 AM (7 years ago)
- Location:
- trunk/src/includes/extend/buddypress
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/includes/extend/buddypress/functions.php
r5951 r6180 6 6 * @package bbPress 7 7 * @subpackage BuddyPress 8 * @todo maybe move to BuddyPress Forums once bbPress 1.1 can be removed9 8 */ 10 9 11 10 // Exit if accessed directly 12 11 defined( 'ABSPATH' ) || exit; 12 13 // Hooks 14 add_action( 'bp_modify_page_title', 'bbp_filter_modify_page_title', 10, 3 ); 15 add_filter( 'bbp_get_user_id', 'bbp_filter_user_id', 10, 3 ); 16 add_filter( 'bbp_is_single_user', 'bbp_filter_is_single_user', 10, 1 ); 17 add_filter( 'bbp_is_user_home', 'bbp_filter_is_user_home', 10, 1 ); 13 18 14 19 /** BuddyPress Helpers ********************************************************/ … … 74 79 return $bbp_user_id; 75 80 } 76 add_filter( 'bbp_get_user_id', 'bbp_filter_user_id', 10, 3 );77 81 78 82 /** … … 91 95 return bp_is_user(); 92 96 } 93 add_filter( 'bbp_is_single_user', 'bbp_filter_is_single_user', 10, 1 );94 97 95 98 /** … … 108 111 return bp_is_my_profile(); 109 112 } 110 add_filter( 'bbp_is_user_home', 'bbp_filter_is_user_home', 10, 1 );111 113 112 114 /** … … 144 146 return $new_title; 145 147 } 146 add_action( 'bp_modify_page_title', 'bbp_filter_modify_page_title', 10, 3 );147 148 148 149 /** BuddyPress Screens ********************************************************/ -
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.