admin管理员组文章数量:1427746
Trying to update the WooCommerce payment method as part of an AJAX call. I'm currently running this line;
function ajax_payUsingVCAccount(){
update_post_meta( esc_attr( $_POST['order_id'] ), 'payment_method_title', 'commission' );
die();
}
But the payment title doesn't update the POST
variable does contain the correct order_id
.
When I dump out the payment title afterwards it's just an empty string.
本文标签: ajaxCan39t update WooCommerce payment method title
版权声明:本文标题:ajax - Can't update WooCommerce payment method title 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745497141a2660857.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论