Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/13/2015 01:35:21 AM (12 years ago)
Author:
tw2113
Message:

Adds hooks documentation to the BP-Notifications component.

Fixes #5946.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-notifications/bp-notifications-classes.php

    r9351 r9352  
    139139                $data_format = array( '%d', '%d', '%d', '%s', '%s', '%s', '%d' );
    140140
     141                /**
     142                 * Fires before the current notification item gets saved.
     143                 *
     144                 * Please use this hook to filter the properties above. Each part will be passed in.
     145                 *
     146                 * @since BuddyPress (2.0.0)
     147                 *
     148                 * @param BP_Notifications_Notification Current instance of the notification item being saved. Passed by reference.
     149                 */
    141150                do_action_ref_array( 'bp_notification_before_save', array( &$this ) );
    142151
     
    158167                }
    159168
     169                /**
     170                 * Fires after the current notification item gets saved.
     171                 *
     172                 * @since BuddyPress (2.0.0)
     173                 *
     174                 * @param BP_Notifications_Notification Current instance of the notification item being saved. Passed by reference.
     175                 */
    160176                do_action_ref_array( 'bp_notification_after_save', array( &$this ) );
    161177
     
    704720                $where = self::get_query_clauses( $args );
    705721
     722                /**
     723                 * Fires before the deletion of a notification item.
     724                 *
     725                 * @since BuddyPress (2.0.0)
     726                 *
     727                 * @param array $args Associative array of columns/values, to determine
     728                 *                    which rows should be deleted. Of the format
     729                 *                    array( 'item_id' => 7, 'component_action' => 'members' ).
     730                 */
    706731                do_action( 'bp_notification_before_delete', $args );
    707732
Note: See TracChangeset for help on using the changeset viewer.