How to get value from wp_usermeta table in database?

You should be using add_user_meta instead of update_user_meta: if (isset($_POST[‘billing_cpf’])) { add_user_meta($customer_id, ‘billing_cpf’, $POST[‘billing_cpf’], true); } As this will only add the meta if it does not already exist – no update. (This will prevent this field from being updatable – unless by you another way.) Note: normally you could use something like this to … Read more

Login to comment: not just user and email

You can try to add this kind of functionality, but it is unlikely to always work. You can not force people to identify their real life ID on the internet. Even geographical detection based on IP address is problematic and easy to avoid using proxies. If you want people to willingly identify themselves on your … Read more

Change WooCommerce registration form/way?

I’ve been trying out the same code snippet from Cloudways as well. If you don’t use the snippet in functions.php, but instead create a copy of the woocommerce file form-login.php in your child theme’s folder/woocommerce/myaccount. Then the fields from the Couldways snippet can be used before the line containing: <?php do_action( ‘woocommerce_after_checkout_billing_form’, $checkout ); ?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)