bp_show_verified_badge_username

Bp_show_verified_badge_username function.

Description

(string) bp_show_verified_badge_username( (mixed) $object ); 

Returns (string)

Parameters (1)

0. $object (mixed)
The object.

Usage

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

Defined (1)

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

/includes/class-functions.php  
  1. function bp_show_verified_badge_username( $object ) { 
  2. global $bp; 
  3.  
  4. $verified_meta = bp_get_verified_meta( $bp->displayed_user->id ); 
  5.  
  6. if ( ! empty( $verified_meta ) ) { 
  7. if ( isset( $verified_meta['profile'] ) && 'yes' === $verified_meta['profile'] && bp_is_verified( $bp->displayed_user->id ) ) { 
  8. $object = $object . ' <span id="bp-verified-header">' . bp_get_verified_image( $verified_meta['image'] ) . '</span>'; 
  9.  
  10. return $object;