bp_gifts_format_notifications

The Buddypress Gifts Latest 2014 bp gifts format notifications hook.

Description

do_action( 'bp_gifts_format_notifications', (unknown) $action, (unknown) $item_id, (unknown) $secondary_item_id, (number) $total_items ); 

Parameters (4)

0. $action (unknown)
The action.
1. $item_id (unknown)
The item id.
2. $secondary_item_id (unknown)
The secondary item id.
3. $total_items (number)
The total items.

Usage

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

Defined (1)

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

/includes/bp-gifts-core.php  
  1. do_action( 'bp_gifts_format_notifications', $action, $item_id, $secondary_item_id, $total_items );