pp_local_avatars_deactivation

The BP Local Avatars pp local avatars deactivation function.

Description

pp_local_avatars_deactivation(); 

Usage

  1. if ( !function_exists( 'pp_local_avatars_deactivation' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bp-local-avatars/loader.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = pp_local_avatars_deactivation(); 
  7.  

Defined (1)

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

/loader.php  
  1. function pp_local_avatars_deactivation () { 
  2.  
  3. $default_avatar = get_option('avatar_default'); 
  4.  
  5. if( $default_avatar == 'identicon_local' ) 
  6. update_option( 'avatar_default', 'mystery' ); 
  7.