- Timestamp:
- 09/24/2015 11:55:02 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-notifications/bp-notifications-functions.php
r10055 r10138 1 1 <?php 2 3 2 /** 4 3 * BuddyPress Member Notifications Functions. … … 10 9 */ 11 10 12 // Exit if accessed directly 11 // Exit if accessed directly. 13 12 defined( 'ABSPATH' ) || exit; 14 13 … … 16 15 * Add a notification for a specific user, from a specific component. 17 16 * 18 * @since BuddyPress (1.9.0)17 * @since 1.9.0 19 18 * 20 19 * @param array $args { … … 81 80 * Get a specific notification by its ID. 82 81 * 83 * @since BuddyPress (1.9.0)82 * @since 1.9.0 84 83 * 85 84 * @param int $id ID of the notification. … … 94 93 * Delete a specific notification by its ID. 95 94 * 96 * @since BuddyPress (1.9.0)95 * @since 1.9.0 97 96 * 98 97 * @param int $id ID of the notification to delete. … … 113 112 * Used when clearing out notifications for a specific notification item. 114 113 * 115 * @since BuddyPress (1.9.0)114 * @since 1.9.0 116 115 * 117 116 * @param int $id ID of the notification. … … 134 133 * Get all notifications for a user and cache them. 135 134 * 136 * @since BuddyPress (2.1.0)135 * @since 2.1.0 137 136 * 138 137 * @param int $user_id ID of the user whose notifications are being fetched. … … 159 158 * Filters all notifications for a user. 160 159 * 161 * @since BuddyPress (2.1.0)160 * @since 2.1.0 162 161 * 163 162 * @param array $notifications Array of notifications for user. … … 170 169 * Get notifications for a specific user. 171 170 * 172 * @since BuddyPress (1.9.0)171 * @since 1.9.0 173 172 * 174 173 * @param int $user_id ID of the user whose notifications are being fetched. … … 277 276 * Filters the notifications for a user. 278 277 * 279 * @since BuddyPress (1.9.0)278 * @since 1.9.0 280 279 * 281 280 * @param array $ref_array Array of properties for the current notification being rendered. … … 316 315 * Filters the final array of notifications to be displayed for a user. 317 316 * 318 * @since BuddyPress (1.6.0)317 * @since 1.6.0 319 318 * 320 319 * @param array|bool $renderable Array of notifications to render or false if no notifications. … … 333 332 * has visited that component. 334 333 * 335 * @since BuddyPress (1.9.0)334 * @since 1.9.0 336 335 * 337 336 * @param int $user_id ID of the user whose notifications are being deleted. … … 355 354 * has visited that component. 356 355 * 357 * @since BuddyPress (1.9.0)356 * @since 1.9.0 358 357 * 359 358 * @param int $user_id ID of the user whose notifications are being deleted. … … 380 379 * Used when clearing out notifications for an entire component. 381 380 * 382 * @since BuddyPress (1.9.0)381 * @since 1.9.0 383 382 * 384 383 * @param int $item_id ID of the user whose notifications are being deleted. … … 407 406 * certain components (such as Friends). Use with caution! 408 407 * 409 * @since BuddyPress (1.9.0)408 * @since 1.9.0 410 409 * 411 410 * @param int $user_id ID of the user whose associated items are being deleted. … … 431 430 * has visited that component. 432 431 * 433 * @since BuddyPress (1.9.0)432 * @since 1.9.0 434 433 * 435 434 * @param int $user_id ID of the user whose notifications are being deleted. … … 459 458 * has visited that component. 460 459 * 461 * @since BuddyPress (1.9.0)460 * @since 1.9.0 462 461 * 463 462 * @param int $user_id ID of the user whose notifications are being deleted. … … 490 489 * Used when clearing out notifications for an entire component. 491 490 * 492 * @since BuddyPress (1.9.0)491 * @since 1.9.0 493 492 * 494 493 * @param int $item_id ID of the user whose notifications are being deleted. … … 523 522 * certain components (such as Friends). Use with caution! 524 523 * 525 * @since BuddyPress (1.9.0)524 * @since 1.9.0 526 525 * 527 526 * @param int $user_id ID of the user whose associated items are being deleted. … … 552 551 * Used before deleting a notification for a user. 553 552 * 554 * @since BuddyPress (1.9.0)553 * @since 1.9.0 555 554 * 556 555 * @param int $user_id ID of the user being checked. … … 566 565 * Get a count of unread notification items for a user. 567 566 * 568 * @since BuddyPress (1.9.0)567 * @since 1.9.0 569 568 * 570 569 * @param int $user_id ID of the user whose unread notifications are being … … 580 579 * Filters the count of unread notification items for a user. 581 580 * 582 * @since BuddyPress (1.9.0)581 * @since 1.9.0 583 582 * 584 583 * @param int $count Count of unread notification items for a user. … … 591 590 * registered Notifications callbacks. 592 591 * 593 * @since BuddyPress (1.9.1)592 * @since 1.9.1 594 593 * 595 594 * @see http://buddypress.trac.wordpress.org/ticket/5300 … … 618 617 * Filters active components with registered notifications callbacks. 619 618 * 620 * @since BuddyPress (1.9.1)619 * @since 1.9.1 621 620 * 622 621 * @param array $component_names Array of registered component names. … … 631 630 * Delete a meta entry from the DB for a notification item. 632 631 * 633 * @since BuddyPress (2.3.0)632 * @since 2.3.0 634 633 * 635 634 * @global object $wpdb WordPress database access object. … … 677 676 * Get metadata for a given notification item. 678 677 * 679 * @since BuddyPress (2.3.0)678 * @since 2.3.0 680 679 * 681 680 * @uses apply_filters() To call the 'bp_notifications_get_meta' hook. … … 699 698 * Filters the metadata for a specified notification item. 700 699 * 701 * @since BuddyPress (2.3.0)700 * @since 2.3.0 702 701 * 703 702 * @param mixed $retval The meta values for the notification item. … … 712 711 * Update a piece of notification meta. 713 712 * 714 * @since BuddyPress (1.2.0)713 * @since 1.2.0 715 714 * 716 715 * @param int $notification_id ID of the notification item whose metadata is being … … 738 737 * Add a piece of notification metadata. 739 738 * 740 * @since BuddyPress (2.3.0)739 * @since 2.3.0 741 740 * 742 741 * @param int $notification_id ID of the notification item.
Note: See TracChangeset
for help on using the changeset viewer.