Dew Technolab
  • Home
  • About Us
  • Services
  • Portfolio
  • Blog
  • Contact Us
Select Page

User Profile Picture Plugin

by Dew Technolab | Sep 25, 2019 | Plugin | 14 comments

User Profile Picture Plugin
Share
Share
Tweet
Pin

Description

WordPress currently only allows you to use custom avatars that are uploaded through Gravatar. Dew User Profile Picture enables you to use any photo uploaded into your Media Library as an avatar. This means you use the same uploader and library as your posts. No extra folders or image editing functions are necessary.

  • Version: 1.0.1
  • WordPress Version: 4.9 or higher
  • Tested up to: 5.2.3
  • PHP Version: 5.2.4 or higher
Download

Installation

Just head to your WordPress dashboard, click on Plugin->Add New and search for User Profile Picture. Click install, and then activate.

OR

Download plugin (Click Here), click on Plugin->Add New->Upload. Click install, and then activate.

Setting a New Profile Picture

Upload User Profile
Simply head to your profile or your user’s and find the section for Profile Image.

Click the upload and it’ll launch a modal where you can select an image for inclusion.

Displaying the Profile Picture

Use the Template Function

There’s a built-in template function that will retrieve and display the profile image. It accepts the same arguments as get_the_post_thumbnail. Here’s an example of it in use.

<?php
/**
 * dew_profile_img
 *
 * Adds a profile image
 *
 * @param $user_id INT - The user ID for the user to retrieve the image for
 * @param $args mixed
    size - string || array (see get_the_post_thumbnail)
    attr - string || array (see get_the_post_thumbnail)
    echo - bool (true or false) - whether to echo the image or return it
 */
 //Assuming $post is in scope
if ( function_exists ( 'dew_profile_img' ) ) {
    $author_id = $post->post_author;
    dew_profile_img( $author_id,
        array(
            'size' => 'thumbnail',
            'attr' => array( 'alt' => 'Alternative Text' ),
            'echo' => true,
        )
    );
}

User Profile Picture Plugin also lets you:

  • Upload your own Default Avatar in your User Profile Picture settings.
  • Show the user’s Gravatar avatar or Default Avatar if the user doesn’t have a User Profile Picture.
  • Disable Gravatar avatars and use only local avatars.
  • Allow Contributors and Subscribers to upload their own avatars.
  • Limit upload file size and image dimensions for Contributors and Subscribers.
Check The Portfolio

About Dew Technolab

View all posts by Dew Technolab

Share
Share
Tweet
Pin
← Previous Post

How WordPress 5.3 Will Change Blocks Indexing

Next Post →

Insta Social Feed

You may also like

  • Instagram Social Feed Setting

    Insta Social Feed

14 Comments

  1. ExoRank
    ExoRank on February 1, 2020 at 10:02 am

    Awesome post! Keep up the great work! 🙂

    Reply
  2. AffiliateLabz
    AffiliateLabz on February 15, 2020 at 9:10 pm

    Great content! Super high-quality! Keep it up! 🙂

    Reply
  3. Jamesjaw
    Jamesjaw on April 24, 2020 at 7:24 am

    Wow, gorgeous website. Thnx …

    Reply
  4. turkce izle
    turkce izle on December 10, 2020 at 3:59 am

    I have been checking out many of your posts and i can claim pretty nice stuff. I will definitely bookmark your blog. Maryann Jarret Ede

    Reply
  5. gavatar
    gavatar on January 10, 2021 at 8:13 am

    thank you.

    Reply
  6. at hirsizi
    at hirsizi on January 16, 2021 at 5:44 am

    thank you bro.

    Reply
  7. royal
    royal on January 24, 2021 at 3:39 pm

    royal thank.

    Reply
  8. watch
    watch on February 1, 2021 at 5:48 am

    When I followed your cycle of sleep and how it began with good intentions from 12:00 to 1:00 and then 2:45, I looked at the clock and behold: 2:45 it is! Avrit Tyler Sofko

    Reply
  9. yabanci
    yabanci on February 1, 2021 at 7:39 am

    Ahaa, its fastidious conversation regarding this post here at this webpage, I have read all that, so at this time me also commenting here. Myrna Waylin Conrad

    Reply
  10. 123movies
    123movies on February 1, 2021 at 10:40 am

    Wow! This could be one particular of the most beneficial blogs We have ever arrive across on this subject. Nathalie Oby Taveda

    Reply
  11. backlink pakete kaufen
    backlink pakete kaufen on February 6, 2021 at 11:25 am

    I’ve been absent for a while, but now I remember why I used to love this blog. Thank you, I’ll try and check back more often. How frequently you update your site?

    Reply
  12. diziler
    diziler on February 7, 2021 at 7:22 pm

    You have made some good points there. I checked on the net to find out more about the issue and found most people will go along with your views on this web site. Candice Karlis Rentsch

    Reply
  13. torrent
    torrent on February 8, 2021 at 6:46 am

    Having read this I thought it was rather informative. I appreciate you taking the time and effort to put this short article together. I once again find myself personally spending a significant amount of time both reading and posting comments. But so what, it was still worth it! Violante Kennie Vina

    Reply
  14. bedava
    bedava on February 8, 2021 at 11:02 am

    I loved as much as you will receive carried out right here. The sketch is tasteful, your authored subject matter stylish. nonetheless, you command get bought an shakiness over that you wish be delivering the following. unwell unquestionably come more formerly again since exactly the same nearly very often inside case you shield this increase. Flss Orin Elata

    Reply

Submit a Comment Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • WordPress 5.7 Features and Screenshots
  • Insta Social Feed
  • User Profile Picture Plugin
  • How WordPress 5.3 Will Change Blocks Indexing

Categories

  • 5.7
  • Blocks Indexing
  • Plugin
  • WordPress
  • WordPress 5.3
  • Facebook
  • Twitter
  • Instagram
  • LinkedIn
Copyright 2019 | Dew Technolab | Privacy Policy | Terms and Conditions