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 做个有关计算的小程序
  • ¥15 MPI读取tif文件无法正常给各进程分配路径
  • ¥15 如何用MATLAB实现以下三个公式(有相互嵌套)
  • ¥30 关于#算法#的问题:运用EViews第九版本进行一系列计量经济学的时间数列数据回归分析预测问题 求各位帮我解答一下
  • ¥15 setInterval 页面闪烁,怎么解决
  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化