Loading...

많이들 하지 않나요? contact form 등에서 원하는 정보를 받은 뒤 다운로드 용 URL(Auth code 포함)을 해당 메일로 보내주는게 가장 유효할 듯 하네요. 구글링 해 봤더니 이런 플러그인 들이 있네요. (써 보진 않어요~) https://wordpress.org/plugins/email-download-link/  

Loading...

소규모 쇼핑몰이라면 우커머스 API 를 그냥 사용한 함수를 사용하시면 좋구요 function get_customer_total_order($user_id=0) { $customer_orders = get_posts( array( ‘numberposts’ => – 1, ‘meta_key’ => ‘_customer_user’, ‘meta_value’ => $user_id ? $user_id : get_current_user_id(), ‘post_type’ => array( ‘shop_order’ ), ‘post_status’ => array( ‘wc-completed’ ) ) ); $total = 0; foreach ( $customer_orders as $customer_order ) { $order =…