Horje
Set a custom profile image (avatar) for a user using the standard WordPress media upload tool.

Noted That:

  • To install correctly this metronet-profile-picture.zip.
  • Fisrt Download the metronet-profile-picture.zip to your computer
  • Extract/Open metronet-profile-picture.zip to Your Computer.
  • Then, Find readme.txt file inside metronet-profile-picture.zip and Open readme.txt.
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the the Tips Below.

Start the Tips:

1. First Download "metronet-profile-picture.zip" Plugin to your Local Computer. (Click Download)

2. Then, Login to your "yourdomain.com/wp-admin" Dashboard.

/stack/wp/e1593231376d7d849d2-4597-4fa3-a6ff-1eca18f72aab.png

3. Then, Click on "Plugins" + "Add New" from left sidemenu of Dashboard.

/stack/wp/e1593231378Screenshot20.png

4. Now, Click on "Upload Plugin" button.

/stack/wp/e1593231380Screenshot-2019-4-2AddPluginsHorjeWordPress.png

 

5. Now, Browse "metronet-profile-picture.zip" Downloaded plugin from your computer, Where you downloaded metronet-profile-picture.zip According to Step – 1 Above then, click on "Install Now"

/stack/wp/e15931461531577025694plugin.png

6. Now, Click on "Active Plugin"

/stack/wp/e15932313830ca45529-bf73-4101-8178-53ae60ce549f.png

7. Then, See left sidemenu. "User Profile Picture" folder is added on left sidemenu. Now, Click on "User Profile Picture" folder.

   Noted that: If you do not see "User Profile Picture" folder on left sidemenu then, see at left sidemenu "Settings" or "Tools".

8. Now you configure yourself oR Watch video tutorial below about User Profile Picture Configurtions and Settings or How to work "User Profile Picture" in your WordPress site.

 

oR

After Activated Plugin According to Step-6 then,

  1. Go to "Plugins" + "Installed Plugin" from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find "User Profile Picture" Activated Plugin from Plugin List.
  4. Then, Click on "Settings" from Plugin that is User Profile Picture
  5. Now, Edit/Add/Config the setting and Click on "Save Changes" button,
WP Plugin Setting



Guide
  1. Upload metronet-profile-picture folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Place in your templates (arguments and usage are below)

Arguments:

/**
* mt_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
*/

Example Usage:

post_author; mt_profile_img( $author_id, array( 'size' => 'thumbnail', 'attr' => array( 'alt' => 'Alternative Text' ), 'echo' => true ) );
}
?>

Since 2.2.0, you can add a profile author box using function mt_author_box.

post_author, array( 'theme' => 'tabbed', 'profileAvatarShape' => 'round', 'showWebsite' => true, 'website' => 'https://www.ronalfy.com', 'showSocialMedia' => true, 'socialMediaOptions' => 'brand', 'socialWordPress' => 'https://profiles.wordpress.org/ronalfy', 'socialFacebook' => 'https://facebook.com/mindefusement',
) );

View the code on GitHub.

The REST API is currently supported for versions of WordPress 4.4 and up.


wordpress, media, upload, tool, standard, using, profile, image, avatar, user,

Name

Reffered: https://wordpress.org/

Share on: