在WooCommerce中,在谢谢/订单接收页面的顶部,我添加了一个自定义文本,其内容如下:
add_action( 'woocommerce_thankyou', 'my_order_received_text', 1, 0);
function my_order_received_text(){
echo '<div class="my_thankyou2"><p>' . __('Your download link was sent to: ') . '</p></div>' ;
}
如何获取添加到自定义文本末尾的客户的电子邮件地址?