bp_notification_before_update

Fires before the update of a notification item.

Description

do_action( 'bp_notification_before_update', (array) $update_args, (array) $where_args ); 

Parameters (2)

0. $update_args (array)
See BP_Notifications_Notification::update().
1. $where_args (array)
See BP_Notifications_Notification::update().

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'bp_notification_before_update', $update_args, $where_args ); 
The following example is for adding a hook callback.
  1. // define the bp_notification_before_update callback 
  2. function action_bp_notification_before_update( $update_args, $where_args ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'bp_notification_before_update', 'action_bp_notification_before_update', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'bp_notification_before_update', 'action_bp_notification_before_update', 10, 2 ); 

Defined (1)

The action is defined in the following location(s).

/bp-notifications/classes/class-bp-notifications-notification.php  
  1. do_action( 'bp_notification_before_update', $update_args, $where_args );