Questions tagged [usermetadata]

29 questions
1
vote
1 answer

Access customer custom user meta data in WooCommerce hooks

This question related to user_register hook I needed to add some extra fields on the user registration form on woocommerce i used Custom User Registration Fields - WooCommerce plugin My question here is how can i access to the value of those added…
1
vote
1 answer

AWS cloudwatch Event : how distinguish multi domain in a source

{ "source": [ "aws.mediaconvert" ], "detail-type": [ "MediaConvert Job State Change" ], "detail": { "status": [ "COMPLETE", "ERROR" ] } } My Follow: Domain A: upload video to aws3 bukket A -> lambda create…
0
votes
0 answers

Getting zero record in user meta data in wordpress

I am trying to get user list with specifice role and who is register between two date. I tried But getting zero record (**it has record in database **)in result. $meta_query = array('relation' => 'AND'); if(isset($_GET['interviewr'])) { …
0
votes
0 answers

How do I add a value to a Wordpress user meta field in PHP if it's empty or append to the array if it is not empty?

I am currently trying to add a value to a Wordpress user's meta field and if the field does not have a value, I would like to add it and if it already has a value, I would like to append it to an array and then update the field. I am using an AJAX…
Ian Harris
  • 25
  • 3
0
votes
1 answer

Displaying user meta data (array) only displaying first value

I have phone call details being added to corresponding user's meta data via webhooks (using wp-webhook plugin). The output is an array as data is always being added. For some reason only the first value is being shown on the front end. Below are 2…
Ryan
  • 31
  • 3
0
votes
0 answers

Updating relationship ACF field during sign up to be displayed on WordPress Dashboard -> User -> Single

When a user signs up to the site, they make a Stripe payment, on success the package they purchased is stored in the database as stripe_package_id. This ID correlates with a relationship field in the ACF's invoice_product. invoice_product is a…
0
votes
0 answers

Group users by meta_value Wordpress

I'm trying to automatically group users when they register according to what is their selection on a drop-down list. The Drop down list has 2 attributes, and this 2 attributes goes to the wp_usermeta meta_key 'activity_domain'. I'm also using WP…
Victor1290
  • 11
  • 2
0
votes
1 answer

Create membership number for existing/new users

I have a membership site with 4000+ users currently on it. I am needing to give both new/existing users an automatic ID number. its very similar to this: Create Unique ID for user However, this only works for new users, I need it to work for the…
OverdueOrange
  • 99
  • 1
  • 10
0
votes
1 answer

Add user meta with gravity forms

I'm kinda stuck right now and would appreciate some help! I want to save the input from a gravity form into the users profile meta but it's a form users do more often so I need the value to be saved in a list every time it gets submitted. In the…
Jawequo
  • 7
  • 1
0
votes
1 answer

Query author meta for all posts on archive page

When a user registers on my Wordress site, a custom post (Athlete) is automatically created, with the user being assigned as the author. The custom post essentially acts as a profile page. On their profile page, users fill out a bunch or info, and a…
Andrew
  • 65
  • 5
0
votes
1 answer

How to get value from wp_usermeta table in database?

I make one custom registration form and add more field address, mobile Number but all subscriber make table his but how to get value address column in my table, get_results("SELECT * from…
bca tech
  • 26
  • 1
  • 8
0
votes
0 answers

Copy value of metakey in user meta table in Wordpress

I would like to copy the value of the billing_company meta key (text type) from the wp_usermeta table to another metakey that is empty in the same table. My new metakey is called cuit (text type). I want to do this with all 2000 users and…
Lulale
  • 1
  • 2
0
votes
0 answers

How admin can update user meta using gravity form

I have gravity form user registration, in which a user can update their own metadata but I want that an admin can also update any user data just by adding their email address on some specific field. if there is any plugin or code which can fulfill…
aman
  • 1
-1
votes
1 answer

Is it possible to get only 3 results when calling a value within a multidimensional array meta with php?

I am working on a comment system and I want to show only 3 results, then I will load the rest on the other side but here I can't think of how to get only 3. The values come from a form and I save them in a post goal creating an array. I show how I…
mario
  • 47
  • 6
1
2