shopp_customer_address_count()

get count of addresses stored on customer record

shopp_customer_address_count (  $customer )

@param int $customer (required) the customer id
@return int number of address records that exist for the customer

Description

get count of addresses stored on customer record

Example

$user = get_user_by('login', 'mylogin');
$customer = shopp_customer($user->ID, 'wpuser');

if ( 2 < shopp_customer_address ) {
    // missing an address
}

See Also

You must be logged in to post a comment.

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

Skip to toolbar