Does someone know if it's possible to edit the fields the ultimate member plugin stores as user meta data?
In users list I see a tab containing the info on these fields, but don't see this info in the user edit page, which impeeds the admin to edit such fields.
Thanks
Related
I am kind a new to wordpress and need guidance. But understand PHP.
I need to add custom tables with data ( Repeater fields is optional/ HTML field ) in User's profile. User Cannot edit those data ( read only )
Data will be manually added from Admin Dashboard > Users. I assume there should be a field in there for admin to add those data
Then, User can read it from their profile page / Data presented in user's profile.
Those data will be something like a set of 3 tabs with Transaction list and history.So each user has different data.
I had searched but all only show tutorials on adding custom Field in User Registration.
Assistance please. Thank You
You can use Advanced custom fields for this. What you do is that you add a field to users add/edit page with ACF. If you have frontend user profile page. You can get the data from this fields with the function get_field('my_custom_field', $userID)
If you don't have and frontend user profile page, and will let your users go thru the "backend" profile page you will need to add som functions that disables so an user can't edit those fields if you don't want the users to edit them. You can do that with the filter add_filter('acf/load_field', 'my_filter);
The rest how you do this should you be able to find on ACF documentation page.
I was following this blog post https://www.themelocation.com/how-to-add-custom-fields-to-user-registration-form-in-woocommerce/ to learn about creating custom user fields in Woo (for registration).
The post above worked, and I was able to see new fields during registration, but I had two questions:
How can I get these fields to appear when I'm editing a user in wp-admin? I didn't notice them rendering on the edit user page.
Right now Woo (by default) lets you just register with an e-mail. I wanted to also use a first name and last name (my custom fields), but this is already a field on the users in WordPress, so I don't want to duplicate fields. Is there a way to somehow pull in/use/associate an existing field (such as name) during the Woo registration?
Thanks so much for any help/guidance you all can give me.
1 You can use this plugin for display your custom fields in the admin view.
2 In your template HTML file, find the form, and use the default id & name tag : "Firstname" / "Lastname" ...ext
I want to add user data from a user registration form I am adding to my wordpress site via Gravity Forms. I want the address information in my form to be added to the Shipping Address fields that Woocommerce adds to my user profile. This should be simple enough but I need to have the meta keys for these fields. Can anyone tell me where to find these meta keys?
When I look at the code in my user profile it shows the field for shipping address has an id and name of "shipping_address_1". Is this also the meta key?
Thank you!
The field 'name' in the HTML input in the user profile is the meta key. (Note: depending on how a given developer handles creating their inputs, this may or may not be the case; but in the case of WooCommerce it is.)
There is a list of meta keys for WooCommerce's checkout fields on this page:
https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/
I am using "Flag Follow" module for Favorites(follow) a user. I am following the users well. But i would like to create a view of a content type(blog) which will show all blog post list of those users which is followed(flaged) by current user. Please help me !
You must use a contextual filter to get the uid from URL and to add a relationship with followed users. After that you will be able to show content related with followers.
I have used profile2 module and have created a separate profile type.
The case is that, i have a profile edit form for the profile type named restaurant. Once the user logged in( with the role restaurant), he will be redirected to the profile edit page, where the user have to fill all the required fields of the profile form. If the user clicks any other links on the page he must be redirected to the same form with a msg (U have to complete the form ) till the user fill all the fields in the profile edit form.
i have done with redirecting the user to the profile edit form. Now i have to do the other part( links redirect with set msg). Is there any module i can use to get the above scenario or i have to do it by custom code. Please help me out if i have to do this by custom code..
Thanks in advance....
To make it working on all the pages and links, you should write some profile field value checking code in hook_page_alter or hook_page_build. If the values are empty, you should redirect the user.