WeAvatar's most complete avatar service in China

WordPress eight 1.8K Reading mode

WeAvatar is currently the most complete avatar service in China, which perfectly replaces Gravatar avatar and solves the pain point that has plagued domestic WordPress users for many years. At present, WeAvatar avatar service is used on this site.

 WeAvatar's most complete avatar service in China

 

 

WeAvatar is similar to Cravatar and uses it in the same way. Compared with Cravatar:

Multi level avatar matching

WeAvatar supports obtaining avatars from Gravatar and QQ in addition to the avatars uploaded by users, which can provide accurate avatars for more than 70% of requests.

Mobile phone number, letterhead

WeAvatar is the first company to support the phone number avatar and the default letter avatar. The phone number avatar is more consistent with the use habits of domestic users. The letter avatar can provide a better experience for users without a avatar.

WEBP support

WeAvatar supports the new generation image format WEBP and returns the WEBP format avatar by default, which can reduce the traffic consumption by about 80%.

Install and enable the WP China Plus plug-in. Go to the plug-in settings page and check "WeAvatar avatar".

If you want to integrate the WeAvatar avatar into the theme, you can add the following code to the current theme function template functions.php:

 if ( !  function_exists( 'get_weavatar_url' ) ) { /** *Replace Gravatar with WeAvatar * *WeAvatar is a new generation avatar service solution, which can be used in https://weavatar.com Modify avatar */ function get_weavatar_url( $url ) { $sources = array( 'www.gravatar.com', '0.gravatar.com', '1.gravatar.com', '2.gravatar.com', 'secure.gravatar.com', 'cn.gravatar.com', 'gravatar.com', 'sdn.geekzu.org', 'gravatar.duoshuo.com', 'gravatar.loli.net', 'cravatar.cn', ); return str_replace( $sources, 'weavatar.com', $url ); } add_filter( 'um_user_avatar_url_filter', 'get_weavatar_url', 1 ); add_filter( 'bp_gravatar_url', 'get_weavatar_url', 1 ); add_filter( 'get_avatar_url', 'get_weavatar_url', 1 ); add_filter( 'um_user_avatar_url_filter', 'get_weavatar_url', PHP_INT_MAX ); add_filter( 'bp_gravatar_url', 'get_weavatar_url', PHP_INT_MAX ); add_filter( 'get_avatar_url', 'get_weavatar_url', PHP_INT_MAX ); } if ( !  function_exists( 'set_defaults_for_weavatar' ) ) { /** *Replace the default avatar in WordPress discussion settings */ function set_defaults_for_weavatar( $avatar_defaults ) { $avatar_defaults ['gravatar_default ']='WeAvatar avatar'; return $avatar_defaults; } add_filter( 'avatar_defaults', 'set_defaults_for_weavatar', 1 ); } if ( !  function_exists( 'set_user_profile_picture_for_weavatar' ) ) { /** *Replace the upload address of the avatar in the profile card */ function set_user_profile_picture_for_weavatar() { return '<a href=" https://weavatar.com "Target=" _blank ">You can modify your profile image in WeAvatar</a>'; } add_filter( 'user_profile_picture_description', 'set_user_profile_picture_for_weavatar', 1 ); }

WeAvatar will replace the Gravatar avatar service later.

Add your own special avatar

Sign in WeAvatar avatar service Click the "Start using" button, add the avatar → input the phone number or email, upload the avatar, send the verification code, input the verification code, and click Add.

Most of the articles on this site are original and used for personal learning records, which may be helpful to you, for reference only!

 weinxin
My Wechat
Copyright Notice
Please indicate the source and link of the original article reprinted on this site. Thank you for your cooperation!
five hundred and ninety-eight million eight hundred and forty-five thousand and six
 
 Robin
five hundred and ninety-eight million eight hundred and forty-five thousand and six
Comments eight    Visitors six    Author two
    •  Tracker
      Tracker two

       :wink: fabulous

      •  Birds
        Birds two

        Ask Brother Bird for help.
        Wordpress homepage article list,
        How can only display the 11-20 articles?
        (Do not display the latest 1-10 articles)
        <? Php query_psots (How should I set 'showposts'?

          •  Robin
            Robin

            @ Birds There are parameters
            ’offset’ => 10
            In addition, it is basically enough to exclude the latest 10 articles

          •  HongNote Blog
            HongNote Blog one

            It seems that there are websites in China that can directly inherit the avatar of Gravatar

              •  Robin
                Robin

                @ HongNote Blog This?
                https://zmingcx.com/cravatar-replaces-gravatar.html
                The same door

                  •  HongNote Blog
                    HongNote Blog one

                    @ Robin Yes, I used the cravatar before, but a few days ago there were frequent problems affecting the speed, so I replaced it with a weaver, and I changed whichever was not good, ha ha :mrgreen:

                •  Coupon collection network
                  Coupon collection network one

                  Favorite!!! Thank you for sharing such a good resource tutorial!!! Followed the blogger's website!!! Will visit for a long time!!! :eek:

                  •  Qipai space
                    Qipai space one

                    Thanks for sharing and collecting.

                   anonymous

                  Comment

                  Anonymous netizens
                   :?:  :razz:  :sad:  :evil:  :!:  :smile:  :oops:  :grin:  :eek:  :shock:  :???:  :cool:  :lol:  :mad:  :twisted:  :roll:  :wink:  :idea:  :arrow:  :neutral:  :cry:  :mrgreen:

                  Drag the slider to complete validation