bp_gifts_single_newgifts_notifications

The Buddypress Gifts Latest 2014 bp gifts single newgifts notifications hook.

Description

apply_filters( 'bp_gifts_single_newgifts_notifications', (string) $var, (string) $user_fullname ); 

Parameters (2)

0. $var — Optional. (string) => '' . sprintf( __( '%s sent you a high-five!', 'bp-gifts' ), $user_fullname ) . ''
The a href gifts new title user fullname s profile sprintf s sent you a high five bp gifts user fullname a.
1. $user_fullname (string)
The user fullname.

Usage

To run the hook, copy the example below.
  1. $var = apply_filters( 'bp_gifts_single_newgifts_notifications', $var, $user_fullname ); 
  2.  
  3. if ( !empty( $var ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the bp_gifts_single_newgifts_notifications callback 
  2. function filter_bp_gifts_single_newgifts_notifications( $var, $user_fullname ) { 
  3. // make filter magic happen here... 
  4. return $var
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bp_gifts_single_newgifts_notifications', 'filter_bp_gifts_single_newgifts_notifications', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bp_gifts_single_newgifts_notifications', 'filter_bp_gifts_single_newgifts_notifications', 10, 2 ); 

Defined (1)

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

/includes/bp-gifts-core.php  
  1. return apply_filters( 'bp_gifts_single_newgifts_notifications', '<a href="' . 'gifts' . '?new" title="' . $user_fullname .'\'s profile">' . sprintf( __( '%s sent you a high-five!', 'bp-gifts' ), $user_fullname ) . '</a>', $user_fullname );