BP_Forums_BB_Auth

The bbPress plugin needs this class for its usermeta manipulation.

Defined (1)

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

/bp-forums/bp-forums-bbpress-sa.php  
  1. class BP_Forums_BB_Auth { 
  2.  
  3. /** 
  4. * Update usermeta data. 
  5. * @since 1.1.0 
  6. * @param string $args Array of arguments. 
  7. * @return bool 
  8. */ 
  9. function update_meta( $args = '' ) { 
  10. $defaults = array( 'id' => 0, 'meta_key' => null, 'meta_value' => null, 'meta_table' => 'usermeta', 'meta_field' => 'user_id', 'cache_group' => 'users' ); 
  11. $args = wp_parse_args( $args, $defaults ); 
  12. extract( $args, EXTR_SKIP ); 
  13.  
  14. return bp_update_user_meta( $id, $meta_key, $meta_value );