ShoppCustomer()

get and set the global Customer object

ShoppCustomer ( $Object )

@param Customer $Object (optional) the specified Customer object
@return Customer the current global customer object

Description

get and set the global Customer object

Example

// set the current customer by email
ShoppCustomer(shopp_customer('customer@example.com', 'email'));
// set the current customer by the current WordPress user
ShoppCustomer(shopp_customer(wp_get_current_user()->ID, 'wpuser'))
// get the current Customer
$Customer = ShoppCustomer();

See Also

You must be logged in to post a comment.

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

Skip to toolbar