It’s the time! You can Download User Profile Picture wp plugin It’s the time! You can. Get User Profile Picture 1.5.5 (or higher version) wp plugin created by Ronald Huereca and use it for your own project.. This WP Plugin 1.5.5 version was updated on 1 month but it is possible there is a newer version available.What could you do with this awesome wp-plugin? [‘A template tag is supplied for outputting to a theme and the option to override a user’s default avatar is also available..’] Are you thinking of installing this wordpress plugin? Let’s check out:
How to Install User Profile Picture WordPress Plugin?
Installation
- Upload
metronet-profile-picture
folder to the/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Place
<?php mt_profile_img() ?>
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:
<?php
//Assuming $post is in scope
if (function_exists ( 'mt_profile_img' ) ) {
$author_id=$post->post_author;
mt_profile_img( $author_id, array(
'size' => 'thumbnail',
'attr' => array( 'alt' => 'Alternative Text' ),
'echo' => true )
);
}
?>
View the code on GitHub.
The REST API is currently supported for versions of WordPress 4.4 and up.