Answer the question
In order to leave comments, you need to log in
How to assign value to $_POST[ 'billing_phone' ] variable from another variable?
added a phone number to the WordPress registration form with this:
update_user_meta( $user_id, 'user_phone', sanitize_text_field( $_POST[ 'user_phone' ] ) );
$_POST['billing_phone']
- the delivery phone in wokomers and displayed in the admin panel?update_user_meta( $user_id, 'user_phone', sanitize_text_field( $_POST[ 'user_phone' ] ) );
update_user_meta( $user_id, 'user_phone', sanitize_text_field( $_POST[ 'billing_phone' ] ) );
update_user_meta( $user_id, 'user_phone', sanitize_text_field( $_POST[ 'user_phone' ] ) );
$_POST[ 'billing_phone' ] = $_POST[ 'user_phone' ];
$_POST[ 'billing_phone' ]
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question