bp_verified_image

Bp_verified_image function.

Description

(string|boolean) bp_verified_image( (integer) $user_id ); 

Returns (string|boolean)

Parameters (1)

0. $user_id (integer)
The user id.

Usage

  1. if ( !function_exists( 'bp_verified_image' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddyverified/includes/class-functions.php'; 
  3.  
  4. // The user id. 
  5. $user_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_verified_image($user_id); 
  9.  

Defined (1)

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

/includes/class-functions.php  
  1. function bp_verified_image( $user_id ) { 
  2. if ( bp_is_verified( $user_id ) ) { 
  3. $meta = bp_get_verified_meta( $user_id ); 
  4. echo bp_get_verified_image( $meta['image'] ); 
  5. return;