wordpress - 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.
解决方案
自 Woocommerce 3.9.1 更新以来,我们有一个功能可以做到这一点: https ://woocommerce.wp-a2z.org/oik_api/wc_orderget_created_via/
$string = WC_Order::get_created_via( $context );
推荐阅读
- python - 对数据框进行双重分组
- reactjs - 组件安装多次,但只渲染一次
- python - 如何将拖放元素添加到前端?
- php - 按联接表的列对多对多关系进行排序
- python - 什么是“_ipython_canary_method_should_not_exist_”?
- r - 如何在不反转绘图的情况下切换 ggplot 中的 y 轴标签?
- reactjs - 您将如何根据上下文组织和分离全局状态?
- google-apps-script - Google 电子表格中的“评估”功能是否有简单的解决方法?
- sql - 如果记录存在,则查找 ID 的所有其他记录
- javascript - 哪个元素包含#id idString 返回索引