توضیحات
Users can set his profile picture from admin end and as well as Front End.
Admin End it would come automatically based on the user role, who has upload_files
capability, otherwise we need to assign capability to them.
In Front End when we use <?php do_action('edit_user_profile',$current_user); ?>
on edit profile section, it would be placed on additonal user profile fields.
*Future Updates: Display current user images alone, short code and migrate withsocial media profile pictures.
عکسهای صفحه
نصب
- Upload
profile-picture
folder to the/wp-content/plugins/
directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to Profile in admin end / Go to profile edit in front end
Note: If you want to add this feature to default scbscribers and contributors, Enable this action hook <?php add_action('admin_init', array($this,'allow_uploads_permission') ); ?>
from the ProfilePicture
class.
سوالات متداول
- Profile Picture upload permissions about users?
-
Currently, who has the capability of upload_files they can upload profile pictures.
Editors and Admins can upload and edit files.
Authors can only upload files.
Subscribers and Contributors cannot do either Need to enableadd_action('admin_init', array($this,'allow_uploads_permission') ) in our class file
. - How to show the profile image in frontend?
-
We can show our customized profile picture in front end whereever you want with registered image sizes. You may use wordpress get_avatar() function by default, else user our customized one it serves by your wish..
id_or_email (integer|string|object) (required ) You may pass user id, email or user object here.
width (integer) (optional) Width of the image.
height (integer) (optional) Width of the image.
alt (string) (optional) alt title of image tag.
Return Values It would return profile picture details as array or false on failure.
نقد و بررسیها
توسعه دهندگان و همکاران
“Profile Picture” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کردهاند.
مشارکت کنندگانترجمه “Profile Picture” به زبان شما.
علاقه مند به توسعه هستید؟
کد را مرور کنید, را بررسی کنید مخزن SVN, یا مشترک شوید گزارش توسعه توسط RSS.
گزارش تغییرات
1.0
Beta Release