Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Amir

    (@repenter)

    Hi. Any update on this issue?

    Thread Starter Amir

    (@repenter)

    They don’t even bother themselves to reply about the bugs reported.

    This is the solution for anyone experienced this:

    function um_filter_get_avatar_url( $url, $id_or_email, $args ) {
    
        $user_ID = get_current_user_id();
        
        if( !$user_ID ){
            return $url;
        }
        
        if ( is_numeric( $id_or_email ) && ! UM()->options()->get( 'use_gravatars' ) && preg_match( '/gravatar/i', $url ) ) {
            $data = um_get_user_avatar_data( $id_or_email, $args['size'] );
            if ( ! empty( $data['url'] ) ) {
                $url = $data['url'];
            }
        }
    
        return $url;
    }
    add_filter( 'get_avatar_url', 'um_filter_get_avatar_url', 20, 3 );
    Thread Starter Amir

    (@repenter)

    Needs to be in functions.php

    Thread Starter Amir

    (@repenter)

    You welcome : )

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WPDiscuz Avatar Conflict’ is closed to new replies.