shopp_rmv_customer_address()

remove an address

shopp_rmv_customer_address (  $address )

@param int $address the address id to remove
@return bool true on success, false on failure

Description

remove an address

Example

// get the user
$user = get_user_by('login', 'myuserlogin');

// get the customer
$customer = shopp_customer($user->ID, 'wpuser');

// remove the shipping and billing addresses
shopp_rmv_customer_address($customer->Shipping->id);
shopp_rmv_customer_address($customer->Billing->id);

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar