Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wp wc php change customer shipping country for all users

$country_code = 'US';

// Get the WC_Customer instance object from user ID
$customer = new WC_Customer( $user_id );

$customer->set_billing_country( $country_code );
$customer->set_shipping_country( $country_code );
$customer->save();
Comment

PREVIOUS NEXT
Code Example
Php :: MForm Bild Attribute 
Php :: php get from second character of string to middle 
Php :: php pdo check if record exists before insert 
Php :: magento2 migration 
Php :: create newfilter wordpress 
Php :: addcslashes (PHP 4, PHP 5, PHP 7, PHP 8) 
Php :: php code inside html 
Php :: add element to this array 
Php :: laravel error reporting code for view 
Php :: Assignment By Reference 
Php :: Comment supprimer les avis sur les produits de votre boutique WooCommerce 
Php :: phpexcel rangetoarray date format 
Php :: HP officejet pro 8720 default password 
Php :: show file in folders phpstorm 
Php :: php datetime format 
Php :: mysqli_fetch_all() expects parameter 1 to be mysqli_result, boolean given in C:xampphtdocscomplete-blog-phpadminincludespost_functions.php on line 31 
Php :: wordpress session variables 
Php :: symfont request all 
Php :: laravel get limited character of string 
Php :: join in php 
Php :: ?id=$1&user=$2 
Php :: php pasar array por post 
Php :: veue laravel remove #/ 
Php :: wordpress deny user to access wp-admin programmatically 
Php :: laravel creating_table_name 
Php :: php how to use multi byte functions 
Php :: with() multiple relationship 
Php :: hp 5 minute later from current date time 
Php :: echo alphabet links 
Php :: Stripe Test - Laravel 
ADD CONTENT
Topic
Content
Source link
Name
8+4 =