pp_lc_add_avatar_default_option_img

The BP Local Avatars pp lc add avatar default option img function.

Description

pp_lc_add_avatar_default_option_img( $avatar_list ); 

Parameters (1)

0. $avatar_list
The avatar list.

Usage

  1. if ( !function_exists( 'pp_lc_add_avatar_default_option_img' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-local-avatars/pp-local-avatars.php'; 
  3.  
  4. // The avatar list. 
  5. $avatar_list = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = pp_lc_add_avatar_default_option_img($avatar_list); 
  9.  

Defined (1)

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

/pp-local-avatars.php  
  1. function pp_lc_add_avatar_default_option_img( $avatar_list ) { 
  2.  
  3. $str_array = array( 'http://0.gravatar.com/avatar/ffd294ab5833ba14aaf175f9acc71cc4?s=64&d=identicon_local&r=g&forcedefault=1 2x', 'http://0.gravatar.com/avatar/ffd294ab5833ba14aaf175f9acc71cc4?s=32&d=identicon_local&r=g&forcedefault=1', 'http://1.gravatar.com/avatar/1ea18284b39b7e184779ea1ddc5f4ee2?s=64&d=identicon_local&r=g&forcedefault=1 2x', 'http://1.gravatar.com/avatar/1ea18284b39b7e184779ea1ddc5f4ee2?s=32&d=identicon_local&r=G&forcedefault=1',  
  4. 'http://1.gravatar.com/avatar/1ea18284b39b7e184779ea1ddc5f4ee2?s=32&d=identicon_local&f=y&r=g',  
  5. 'http://1.gravatar.com/avatar/1ea18284b39b7e184779ea1ddc5f4ee2?s=64&d=identicon_local&f=y&r=g 2x' 
  6. ); 
  7.  
  8. $icon = plugins_url( 'icon.png', __FILE__ ); 
  9.  
  10. $avatar_list = str_ireplace($str_array, $icon, $avatar_list); 
  11.  
  12. return $avatar_list; 
  13.