“Customer Since” code/function that outputs the date?

[ad_1]

Hey @sho-down

For the Customer since field, you can use the $custoner->date_created method.
Perhaps something like this to get the date:


$customer_since_date = substr( $customer->date_created, 0, strpos( $customer->date_created, ' ' ) );
$customer_since = date( 'F j, Y', str_replace( '-', '/', strtotime( $customer_since_date ) ) );

Something similar can be done for the purchase value as that is now stored in the Customer table:


echo edd_currency_filter( edd_format_amount( $customer->purchase_value ) );

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer