get_avatar

get_avatar

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('get_avatar') is found 2 times:

  • /wp-includes/pluggable.php line 2914
    		$avatar = apply_filters( 'pre_get_avatar', null, $id_or_email, $args );
    
    		if ( ! is_null( $avatar ) ) {
    			/** This filter is documented in wp-includes/pluggable.php */
    			return apply_filters( 'get_avatar', $avatar, $id_or_email, $args['size'], $args['default'], $args['alt'], $args );
    		}
    
    		if ( ! $args['force_display'] && ! get_option( 'show_avatars' ) ) {
    			return false;
    		}
    
    
  • /wp-includes/pluggable.php line 3012
    		 *                              - 'gravatar_default' (the Gravatar logo)
    		 * @param string $alt           Alternative text to use in the avatar image tag.
    		 * @param array  $args          Arguments passed to get_avatar_data(), after processing.
    		 */
    		return apply_filters( 'get_avatar', $avatar, $id_or_email, $args['size'], $args['default'], $args['alt'], $args );
    	}
    endif;
    
    if ( ! function_exists( 'wp_text_diff' ) ) :
    	/**
    	 * Displays a human readable HTML representation of the difference between two strings.
    

See this hook used in plugins: