What WooCommerce API should I use on the server?

前端 未结 2 1324
情书的邮戳
情书的邮戳 2021-01-03 05:38

I am writing a script to bulk-change product properties such as price, weight and dimension. I need to run the script directly on the server where WordPress (4.7.2) and WooC

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-03 06:22

    Well , according to your excellent answer , I just can add that you can use the wordpress api (v2.wp-api.org) itself to run this as a function so it will be protected and you can also add authentication to execute just in case you care about security. Like I normally like to add 2 more plugins for normal setup : api tool box (to change the api route -> wp-json) and wp options and edit the option files for my functions.

提交回复
热议问题