um_avatar_defaults

The Ultimate Member um avatar defaults function.

Description

um_avatar_defaults( $avatar_defaults ); 

Parameters (1)

0. $avatar_defaults
The avatar defaults.

Usage

  1. if ( !function_exists( 'um_avatar_defaults' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ultimate-member/core/um-filters-avatars.php'; 
  3.  
  4. // The avatar defaults. 
  5. $avatar_defaults = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = um_avatar_defaults($avatar_defaults); 
  9.  

Defined (1)

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

/core/um-filters-avatars.php  
  1. function um_avatar_defaults($avatar_defaults) { 
  2. remove_filter('get_avatar', 'um_get_avatar', 99999, 5); 
  3. return $avatar_defaults;