bp_gifts_allgift

The Buddypress Gifts Latest 2014 bp gifts allgift function.

Description

bp_gifts_allgift(); 

Usage

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

Defined (1)

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

/includes/bp-gifts-classes.php  
  1. function bp_gifts_allgift() { 
  2.  
  3. global $bp, $wpdb; 
  4.  
  5.  
  6.  
  7. $allgift = $wpdb->get_results( $wpdb->prepare("SELECT * FROM {$bp->gifts->table_name} ", "") ); 
  8.  
  9. return $allgift; 
  10.  
  11.  
  12.