How to Import New Stores with Stores URL
I am in the process of importing coupon codes from Popshops.
To do this, I am using "wp_insert_post" to add the new coupons.
I am setting the store name via "wp_set_object_terms."
Everything works fine, a new "store" is created with the correct name.
The problem is, my "store" does not contain a "store url".
I am trying to populate the "store url" using this function:
wp_update_term( 41, 'stores',
array(
'clpr_store_url' => $url,
)
);
41 is the taxonomy id of the specific store
clpr_store_url is the field I believe represents "store url"
$url is the store url I am getting from popshops.