dongwu8064 2017-04-16 16:32
浏览 116
已采纳

admin-ajax.php?action = woocommerce_feature_product 403错误

i have a wordpress with woocommerce plugin but when i trying to set featured some product on woocommerce product page that star used to set featured item show yes but in phpmyadmin there is no change on _featured of the item i use firefox inspect element in the network tap when i click on star buttom i got 302 error on:"wp-admin/admin-ajax.php?action=woocommerce_feature_product&product_id=74&_wpnonce=2bd42dcb1e" i disable all other plugins and there is no change in functions.php of my theme i realy dont know why this happen befor the woocommerce major update(ver 3) every thing is ok but after that i cant featured some item. my woocommerce ver: 3.0.3 my wordpress ver: 4.7.3

  • 写回答

1条回答 默认 最新

  • duanreng3439 2017-04-17 03:38
    关注

    From WooCommerce v3.0 featured items are not tracked by meta any more they are now Taxonomy. That's why you don't see the featured meta getting updated.

    Featured products are also using the new product_visibility taxonomy instead of meta which improves queries on those.

    Read the blog here

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?