{"id":39024,"date":"2015-09-21T02:29:49","date_gmt":"2015-09-21T02:29:49","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/profile-picture\/"},"modified":"2016-06-03T02:30:59","modified_gmt":"2016-06-03T02:30:59","slug":"profile-picture","status":"publish","type":"plugin","link":"https:\/\/twd.wordpress.org\/plugins\/profile-picture\/","author":13980277,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0","stable_tag":"1.0","tested":"4.5.33","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"Profile Picture","header_author":"Arul Jayaraj","header_description":"","assets_banners_color":"","last_updated":"2016-06-03 02:30:59","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/www.aruljayaraj.com","rating":3.5,"author_block_rating":0,"active_installs":80,"downloads":8748,"num_ratings":3,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"1.0":"<p>Beta Release<\/p>"},"ratings":{"1":"1","2":0,"3":0,"4":"2","5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1249951","resolution":"1","location":"assets"},"screenshot-2.png":{"filename":"screenshot-2.png","revision":"1249951","resolution":"2","location":"assets"},"screenshot-3.png":{"filename":"screenshot-3.png","revision":"1249951","resolution":"3","location":"assets"}},"screenshots":{"1":"<p>Add profile image field in admin end.<\/p>","2":"<p>After uploading and saving your selected image.<\/p>","3":"<p>Show the same profile image feature in front end.<\/p>"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[51328,22299,7894,27079,51327],"plugin_category":[],"plugin_contributors":[84032],"plugin_business_model":[],"class_list":["post-39024","plugin","type-plugin","status-publish","hentry","plugin_tags-custom-profile-picture","plugin_tags-profile-photo","plugin_tags-profile-picture","plugin_tags-user-photo","plugin_tags-user-profile-picture","plugin_contributors-aruljayarajs","plugin_committers-aruljayarajs"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/profile-picture.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/profile-picture\/assets\/screenshot-1.png?rev=1249951","caption":"<p>Add profile image field in admin end.<\/p>"},{"src":"https:\/\/ps.w.org\/profile-picture\/assets\/screenshot-2.png?rev=1249951","caption":"<p>After uploading and saving your selected image.<\/p>"},{"src":"https:\/\/ps.w.org\/profile-picture\/assets\/screenshot-3.png?rev=1249951","caption":"<p>Show the same profile image feature in front end.<\/p>"}],"raw_content":"<!--section=description-->\n<p>Users can set his profile picture from admin end and as well as Front End.<\/p>\n\n<p>Admin End it would come automatically based on the user role, who has <code>upload_files<\/code> capability, otherwise we need to assign capability to them.<\/p>\n\n<p>In Front End when we use <code>&lt;?php do_action('edit_user_profile',$current_user); ?&gt;<\/code> on edit profile section, it would be placed on additonal user profile fields.<\/p>\n\n<p>*Future Updates: Display current user images alone, short code and migrate withsocial media profile pictures.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>profile-picture<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Go to Profile in admin end \/ Go to profile edit in front end  <\/li>\n<\/ol>\n\n<p>Note: If you want to add this feature to default scbscribers and contributors, Enable this action hook <code>&lt;?php add_action('admin_init', array($this,'allow_uploads_permission') ); ?&gt;<\/code> from the <code>ProfilePicture<\/code> class.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Profile Picture upload permissions about users?<\/dt>\n<dd><p>Currently, who has the capability of upload_files they can upload profile pictures.\nEditors and Admins can upload and edit files.\nAuthors can only upload files.\nSubscribers and Contributors cannot do either Need to enable <code>add_action('admin_init', array($this,'allow_uploads_permission') ) in our class file<\/code>.<\/p><\/dd>\n<dt>How to show the profile image in frontend?<\/dt>\n<dd><p>We can show our customized profile picture in front end whereever you want with registered image sizes. You may use wordpress <strong>get_avatar() function by default, else user our customized one it serves by your wish.<\/strong>. \n    \n<strong>id_or_email<\/strong> (integer|string|object) (required  ) You may pass user id, email or user object here.<\/p>\n\n<p><strong>width<\/strong> (integer) (optional) Width of the image.<\/p>\n\n<p><strong>height<\/strong> (integer) (optional) Width of the image.<\/p>\n\n<p><strong>alt<\/strong> (string) (optional) alt title of image tag.<\/p>\n\n<p><strong>Return Values<\/strong> It would return profile picture details as array or false on failure.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<p>Beta Release<\/p>","raw_excerpt":"Set a profile picture as your wish using media upload.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/39024","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=39024"}],"author":[{"embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/aruljayarajs"}],"wp:attachment":[{"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=39024"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=39024"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=39024"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=39024"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=39024"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/twd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=39024"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}