首页 > 解决方案 > Ability to identify customers / orders placed via the REST API

问题描述

Is there a function (or at least a plugin) that identifies a customer created through the REST API, and prevents them from sending emails as "account creation confirmation" or "order confirmation"?

Thanks per advance, Paul.

标签: wordpressapiemailwoocommerce

解决方案


自 Woocommerce 3.9.1 更新以来,我们有一个功能可以做到这一点: https ://woocommerce.wp-a2z.org/oik_api/wc_orderget_created_via/

$string = WC_Order::get_created_via( $context );

推荐阅读