bb_delete_usermeta

The BuddyPress bb delete usermeta function.

Description

bb_delete_usermeta( $user_id, $meta_key, (null) $meta_value = null ); 

Parameters (3)

0. $user_id
The user id.
1. $meta_key
The meta key.
2. $meta_value — Optional. (null) => null
The meta value.

Usage

  1. if ( !function_exists( 'bb_delete_usermeta' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-meta.php'; 
  3.  
  4. // The user id. 
  5. $user_id = null; 
  6.  
  7. // The meta key. 
  8. $meta_key = null; 
  9.  
  10. // The meta value. 
  11. $meta_value = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = bb_delete_usermeta($user_id, $meta_key, $meta_value); 
  15.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-meta.php  
  1. function bb_delete_usermeta( $user_id, $meta_key, $meta_value = null ) 
  2. return bb_delete_meta( $user_id, $meta_key, $meta_value, 'user' );