Changeset 10148 for trunk/src/bp-groups/bp-groups-notifications.php
- Timestamp:
- 09/27/2015 05:25:02 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-notifications.php
r9970 r10148 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Groups Notification Functions. … … 11 10 */ 12 11 13 // Exit if accessed directly 12 // Exit if accessed directly. 14 13 defined( 'ABSPATH' ) || exit; 15 14 … … 19 18 * Notify all group members when a group is updated. 20 19 * 21 * @since BuddyPress (1.0.0)20 * @since 1.0.0 22 21 * 23 22 * @param int $group_id ID of the group. … … 51 50 * Filters the bullet points listing updated items in the email notification after a group is updated. 52 51 * 53 * @since BuddyPress (2.2.0)52 * @since 2.2.0 54 53 * 55 54 * @param array $changed Array of bullet points. … … 94 93 * Filters the user email that the group update notification will be sent to. 95 94 * 96 * @since BuddyPress (1.2.0)95 * @since 1.2.0 97 96 * 98 97 * @param string $to User email the notification is being sent to. … … 103 102 * Filters the group update notification subject that will be sent to user. 104 103 * 105 * @since BuddyPress (1.2.0)104 * @since 1.2.0 106 105 * 107 106 * @param string $subject Email notification subject text. … … 113 112 * Filters the group update notification message that will be sent to user. 114 113 * 115 * @since BuddyPress (1.2.0)114 * @since 1.2.0 116 115 * 117 116 * @param string $message Email notification message text. … … 132 131 * See https://buddypress.trac.wordpress.org/ticket/3644 for blank message parameter. 133 132 * 134 * @since BuddyPress (1.5.0)133 * @since 1.5.0 135 134 * 136 135 * @param array $user_ids Array of user IDs to notify about the update. … … 145 144 * Notify group admin about new membership request. 146 145 * 147 * @since BuddyPress (1.0.0)146 * @since 1.0.0 148 147 * 149 148 * @param int $requesting_user_id ID of the user requesting group membership. … … 234 233 * Filters the user email that the group membership request will be sent to. 235 234 * 236 * @since BuddyPress (1.2.0)235 * @since 1.2.0 237 236 * 238 237 * @param string $to User email the request is being sent to. … … 243 242 * Filters the group membership request subject that will be sent to user. 244 243 * 245 * @since BuddyPress (1.2.0)244 * @since 1.2.0 246 245 * 247 246 * @param string $subject Membership request email subject text. … … 253 252 * Filters the group membership request message that will be sent to user. 254 253 * 255 * @since BuddyPress (1.2.0)254 * @since 1.2.0 256 255 * 257 256 * @param string $message Membership request email message text. … … 269 268 * Fires after the notification is sent that a member has requested group membership. 270 269 * 271 * @since BuddyPress (1.5.0)270 * @since 1.5.0 272 271 * 273 272 * @param int $admin_id ID of the group administrator. … … 284 283 * Notify member about their group membership request. 285 284 * 286 * @since BuddyPress (1.0.0)285 * @since 1.0.0 287 286 * 288 287 * @param int $requesting_user_id ID of the user requesting group membership. … … 353 352 * Filters the user email that the group membership request result will be sent to. 354 353 * 355 * @since BuddyPress (1.2.0)354 * @since 1.2.0 356 355 * 357 356 * @param string $to User email the request result is being sent to. … … 362 361 * Filters the group membership request result subject that will be sent to user. 363 362 * 364 * @since BuddyPress (1.2.0)363 * @since 1.2.0 365 364 * 366 365 * @param string $subject Membership request result email subject text. … … 372 371 * Filters the group membership request result message that will be sent to user. 373 372 * 374 * @since BuddyPress (1.2.0)373 * @since 1.2.0 375 374 * 376 375 * @param string $message Membership request result email message text. … … 386 385 * Fires after the notification is sent that a membership has been approved. 387 386 * 388 * @since BuddyPress (1.5.0)387 * @since 1.5.0 389 388 * 390 389 * @param int $requesting_user_id ID of the user whose membership was approved. … … 401 400 * Notify group member they have been promoted. 402 401 * 403 * @since BuddyPress (1.0.0)402 * @since 1.0.0 404 403 * 405 404 * @param int $user_id ID of the user. … … 459 458 * Filters the user email that the group promotion notification will be sent to. 460 459 * 461 * @since BuddyPress (1.2.0)460 * @since 1.2.0 462 461 * 463 462 * @param string $to User email the promotion notification is being sent to. … … 468 467 * Filters the group promotion notification subject that will be sent to user. 469 468 * 470 * @since BuddyPress (1.2.0)469 * @since 1.2.0 471 470 * 472 471 * @param string $subject Promotion notification email subject text. … … 478 477 * Filters the group promotion notification message that will be sent to user. 479 478 * 480 * @since BuddyPress (1.2.0)479 * @since 1.2.0 481 480 * 482 481 * @param string $message Promotion notification email message text. … … 493 492 * Fires after the notification is sent that a member has been promoted. 494 493 * 495 * @since BuddyPress (1.5.0)494 * @since 1.5.0 496 495 * 497 496 * @param int $user_id ID of the user who was promoted. … … 507 506 * Notify a member they have been invited to a group. 508 507 * 509 * @since BuddyPress (1.0.0)508 * @since 1.0.0 510 509 * 511 510 * @param BP_Groups_Group $group Group object. … … 575 574 * Filters the user email that the group invite notification will be sent to. 576 575 * 577 * @since BuddyPress (1.2.0)576 * @since 1.2.0 578 577 * 579 578 * @param string $to User email the invite notification is being sent to. … … 584 583 * Filters the group invite notification subject that will be sent to user. 585 584 * 586 * @since BuddyPress (1.2.0)585 * @since 1.2.0 587 586 * 588 587 * @param string $subject Invite notification email subject text. … … 594 593 * Filters the group invite notification message that will be sent to user. 595 594 * 596 * @since BuddyPress (1.2.0)595 * @since 1.2.0 597 596 * 598 597 * @param string $message Invite notification email message text. … … 611 610 * Fires after the notification is sent that a member has been invited to a group. 612 611 * 613 * @since BuddyPress (1.5.0)612 * @since 1.5.0 614 613 * 615 614 * @param int $invited_user_id ID of the user who was invited. … … 626 625 * Format notifications for the Groups component. 627 626 * 628 * @since BuddyPress (1.0.0)627 * @since 1.0.0 629 628 * 630 629 * @param string $action The kind of notification being rendered. … … 665 664 * Complete filter - bp_groups_multiple_new_membership_requests_notification. 666 665 * 667 * @since BuddyPress (1.0.0)666 * @since 1.0.0 668 667 * 669 668 * @param string $string HTML anchor tag for request. … … 683 682 * Complete filter - bp_groups_multiple_new_membership_requests_notification. 684 683 * 685 * @since BuddyPress (1.0.0)684 * @since 1.0.0 686 685 * 687 686 * @param array $array Array holding permalink and content for notification. … … 710 709 * Complete filter - bp_groups_single_new_membership_request_notification. 711 710 * 712 * @since BuddyPress (1.0.0)711 * @since 1.0.0 713 712 * 714 713 * @param string $string HTML anchor tag for request. … … 728 727 * Complete filter - bp_groups_single_new_membership_request_notification. 729 728 * 730 * @since BuddyPress (1.0.0)729 * @since 1.0.0 731 730 * 732 731 * @param array $array Array holding permalink and content for notification. … … 764 763 * Complete filter - bp_groups_multiple_membership_request_accepted_notification. 765 764 * 766 * @since BuddyPress (1.0.0)765 * @since 1.0.0 767 766 * 768 767 * @param string $string HTML anchor tag for notification. … … 779 778 * Complete filter - bp_groups_multiple_membership_request_accepted_notification. 780 779 * 781 * @since BuddyPress (1.0.0)780 * @since 1.0.0 782 781 * 783 782 * @param array $array Array holding permalink and content for notification … … 803 802 * Complete filter - bp_groups_single_membership_request_accepted_notification. 804 803 * 805 * @since BuddyPress (1.0.0)804 * @since 1.0.0 806 805 * 807 806 * @param string $string HTML anchor tag for notification. … … 818 817 * Complete filter - bp_groups_single_membership_request_accepted_notification. 819 818 * 820 * @since BuddyPress (1.0.0)819 * @since 1.0.0 821 820 * 822 821 * @param array $array Array holding permalink and content for notification. … … 853 852 * Complete filter - bp_groups_multiple_membership_request_rejected_notification. 854 853 * 855 * @since BuddyPress (1.0.0)854 * @since 1.0.0 856 855 * 857 856 * @param string $string HTML anchor tag for notification. … … 868 867 * Complete filter - bp_groups_multiple_membership_request_rejected_notification. 869 868 * 870 * @since BuddyPress (1.0.0)869 * @since 1.0.0 871 870 * 872 871 * @param array $array Array holding permalink and content for notification. … … 891 890 * Complete filter - bp_groups_single_membership_request_rejected_notification. 892 891 * 893 * @since BuddyPress (1.0.0)892 * @since 1.0.0 894 893 * 895 894 * @param string $string HTML anchor tag for notification. … … 906 905 * Complete filter - bp_groups_single_membership_request_rejected_notification. 907 906 * 908 * @since BuddyPress (1.0.0)907 * @since 1.0.0 909 908 * 910 909 * @param array $array Array holding permalink and content for notification. … … 940 939 * Complete filter - bp_groups_multiple_member_promoted_to_admin_notification. 941 940 * 942 * @since BuddyPress (1.0.0)941 * @since 1.0.0 943 942 * 944 943 * @param string $string HTML anchor tag for notification. … … 953 952 * Complete filter - bp_groups_multiple_member_promoted_to_admin_notification. 954 953 * 955 * @since BuddyPress (1.0.0)954 * @since 1.0.0 956 955 * 957 956 * @param array $array Array holding permalink and content for notification. … … 974 973 * Complete filter - bp_groups_single_member_promoted_to_admin_notification. 975 974 * 976 * @since BuddyPress (1.0.0)975 * @since 1.0.0 977 976 * 978 977 * @param string $string HTML anchor tag for notification. … … 988 987 * Complete filter - bp_groups_single_member_promoted_to_admin_notification. 989 988 * 990 * @since BuddyPress (1.0.0)989 * @since 1.0.0 991 990 * 992 991 * @param array $array Array holding permalink and content for notification. … … 1022 1021 * Complete filter - bp_groups_multiple_member_promoted_to_mod_notification. 1023 1022 * 1024 * @since BuddyPress (1.0.0)1023 * @since 1.0.0 1025 1024 * 1026 1025 * @param string $string HTML anchor tag for notification. … … 1056 1055 * Complete filter - bp_groups_single_member_promoted_to_mod_notification. 1057 1056 * 1058 * @since BuddyPress (1.0.0)1057 * @since 1.0.0 1059 1058 * 1060 1059 * @param string $string HTML anchor tag for notification. … … 1070 1069 * Complete filter - bp_groups_single_member_promoted_to_mod_notification. 1071 1070 * 1072 * @since BuddyPress (1.0.0)1071 * @since 1.0.0 1073 1072 * 1074 1073 * @param array $array Array holding permalink and content for notification. … … 1104 1103 * Complete filter - bp_groups_multiple_group_invite_notification. 1105 1104 * 1106 * @since BuddyPress (1.0.0)1105 * @since 1.0.0 1107 1106 * 1108 1107 * @param string $string HTML anchor tag for notification. … … 1117 1116 * Complete filter - bp_groups_multiple_group_invite_notification. 1118 1117 * 1119 * @since BuddyPress (1.0.0)1118 * @since 1.0.0 1120 1119 * 1121 1120 * @param array $array Array holding permalink and content for notification. … … 1138 1137 * Complete filter - bp_groups_single_group_invite_notification. 1139 1138 * 1140 * @since BuddyPress (1.0.0)1139 * @since 1.0.0 1141 1140 * 1142 1141 * @param string $string HTML anchor tag for notification. … … 1152 1151 * Complete filter - bp_groups_single_group_invite_notification. 1153 1152 * 1154 * @since BuddyPress (1.0.0)1153 * @since 1.0.0 1155 1154 * 1156 1155 * @param array $array Array holding permalink and content for notification. … … 1174 1173 * Filters plugin-added group-related custom component_actions. 1175 1174 * 1176 * @since BuddyPress (2.4.0)1175 * @since 2.4.0 1177 1176 * 1178 1177 * @param string $notification Null value. … … 1196 1195 * Fires right before returning the formatted group notifications. 1197 1196 * 1198 * @since BuddyPress (1.0.0)1197 * @since 1.0.0 1199 1198 * 1200 1199 * @param string $action The type of notification being rendered. … … 1211 1210 * Remove all notifications for any member belonging to a specific group. 1212 1211 * 1213 * @since BuddyPress (1.9.0)1212 * @since 1.9.0 1214 1213 * 1215 1214 * @param int $group_id ID of the group. … … 1225 1224 * When a demotion takes place, delete any corresponding promotion notifications. 1226 1225 * 1227 * @since BuddyPress (2.0.0)1226 * @since 2.0.0 1228 1227 * 1229 1228 * @param int $user_id ID of the user. … … 1241 1240 * Mark notifications read when a member accepts a group invitation. 1242 1241 * 1243 * @since BuddyPress (1.9.0)1242 * @since 1.9.0 1244 1243 * 1245 1244 * @param int $user_id ID of the user. … … 1258 1257 * Mark notifications read when a member views their group memberships. 1259 1258 * 1260 * @since BuddyPress (1.9.0)1259 * @since 1.9.0 1261 1260 */ 1262 1261 function bp_groups_screen_my_groups_mark_notifications() { … … 1282 1281 * Mark group invitation notifications read when a member views their invitations. 1283 1282 * 1284 * @since BuddyPress (1.9.0)1283 * @since 1.9.0 1285 1284 */ 1286 1285 function bp_groups_screen_invites_mark_notifications() { … … 1294 1293 * Mark group join requests read when an admin or moderator visits the group administration area. 1295 1294 * 1296 * @since BuddyPress (1.9.0)1295 * @since 1.9.0 1297 1296 */ 1298 1297 function bp_groups_screen_group_admin_requests_mark_notifications() { … … 1306 1305 * Delete new group membership notifications when a user is being deleted. 1307 1306 * 1308 * @since BuddyPress (1.9.0)1307 * @since 1.9.0 1309 1308 * 1310 1309 * @param int $user_id ID of the user.
Note: See TracChangeset
for help on using the changeset viewer.