get_avatar

get_avatar

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

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('get_avatar') is found 2 times:

  • /wp-includes/pluggable.php line 2994
    2990
    2991
    2992
    2993
    2994
    2995
    2996
    2997
    2998
    2999
    $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 3092
    3088
    3089
    3090
    3091
    3092
    3093
    3094
    3095
    3096
    3097
    3098
             *                              - '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: