Rahul Gandhi
Forum Replies Created
-
Hi,
For that, you will need to do customization using hooks and filters we have provided. Let me know if you don’t find any related hooks and I can help you out.
Regards,
PatrikHi,
We already have a change password form on the account page. You can see screenshot and more info at https://docs.userswp.io/article/477-uwp-account-widget
Regards,
PatrikHi,
There is no direct way to do it but we have hooks and filters in our plugin which can be used to add content after the user name on the profile page. You can try following code and modify according to your needs:
add_action( 'uwp_profile_after_title', 'uwp_profile_after_title_cb', 9, 1 ); function uwp_profile_after_title_cb($user_id){ global $uwp_in_user_loop; $user = get_userdata( $user_id ); if ( ! $uwp_in_user_loop && $user && is_user_logged_in() && isset($user->roles[0]) ) { echo '<span>('.$user->roles[0].')</span>'; } }Let me know if it helps.
Regards,
PatrikHi,
This could be due to security plugins or caching on your website. Can you please let us know if you are using any plugin for the same on your site?
Regards,
PatrikHi,
1) email part before @ will be used for the username and will be used for login.
2) username will be used for login
3) Display name excluding space will be used as username and if not provided then email part before @ will be used for the username and will be used for login.In all cases, if there is no Display Name field then it will take a first name and last name as a Display name and if no first name and last name are used then it will take username as a display name. The display name is optional but the username is mandatory so it will be taken as per the case above.
Regards,
PatrikHi,
The query seems OK to me but you should do it in a WordPress way using WordPress functions and you can use a cron job for this which will allow doing this on some intervals also generally wp_links table doesn’t have any data stored but if you are using any plugins who store data then you can use that query. I would suggest first you do on the staging or local site instead of doing on the live site.
Regards,
PatrikHi,
Can you explain in detail what exactly you want to clean? We use our own table for storing user meta called ‘wp_uwp_usermeta’ on registration. Users are stored in default ‘wp_users’ table.
Regards,
PatrikHi,
Yes, that’s partially correct but when the email is used it will only take the part before @ instead of full email as a username.
Regards,
PatrikHi,
Can you show the shortcode or code which is not working for you? You can use user meta shortcode by passing user ID and custom field key and how it should display. For example [uwp_user_meta user_id=’1′ key=’uwp_country’ show=”]. If you don’t use the user_id parameter then it will take the currently logged-in user ID and if the shortcode is displayed on the profile page then it will take the displayed user ID.
Regards,
PatrikHi,
You can assign a user role to the user on registration. For this, you need to set the user role at the option “User Role to Assign” in the form option of the account form builder. I am not sure where you want to output? Can you provide a screenshot?
Regards,
PatrikHi,
We don’t have such integration yet. You can look for the hooks and filters in UsersWP to achieve this by customization. We allow fetching UsersWP user meta using default get_user_meta() plugin by adding ‘uwp_meta_’ prefix to the custom field key created from account form builder.
Regards,
PatrikHi,
Do you mean you want to remove the First Name and Last Name fields from the account form and registration form? If you can create a support request at https://userswp.io/support mentioning this support link we can take a look at your site URL and help you solve the issue.
Regards,
PatrikGood to know the issue is solved. Have a good day!
Hi,
The easy way is to hide the change image icon using the following CSS:
Another way is we do provide an individual widget/shortcode for the profile image and cover image which you can use for the profile page instead of the default shortcode and in the widget or shortcode, we have provided a parameter to disable the upload icon.
Another way is to override the template file user-cover.php in your currently active theme and remove the code displaying the upload icon.
Let me know if any of the above solution helps or not.
Regards,
PatrikHi,
Do you want to disable upload functionality or want to remove the cover image from the profile page? To remove the cover image from the profile you can disable the setting at UsersWP->General->Profile->Show Advanced->Display header in profile. Let me know if it helps or not.
Regards,
Patrik