bp_gifts_screen

The Buddypress Gifts Latest 2014 bp gifts screen function.

Description

bp_gifts_screen(); 

Usage

  1. if ( !function_exists( 'bp_gifts_screen' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress-gifts-latest-2014/includes/bp-gifts-core.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_gifts_screen(); 
  7.  

Defined (1)

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

/includes/bp-gifts-core.php  
  1. function bp_gifts_screen() { 
  2.  
  3. global $bp; 
  4.  
  5.  
  6. /** remove all gift component notification */ 
  7.  
  8. if ($bp->loggedin_user->id == $bp->displayed_user->id) { 
  9.  
  10. bp_notifications_delete_notifications_by_type($bp->displayed_user->id, 'gifts', 'new_gifts'); 
  11.  
  12.  
  13.  
  14. /** Add a do action here, so your component can be extended by others. */ 
  15.  
  16. do_action( 'bp_gifts_screen_one' ); 
  17.  
  18.  
  19.  
  20. /**** 
  21.   
  22. * Displaying Content 
  23.   
  24. */ 
  25.  
  26.  
  27.  
  28. bp_core_load_template( apply_filters( 'bp_gifts_template_screen', 'gifts/screen' ) ); 
  29.  
  30.