Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/ivannikitin-com/conditional-shipping-for-woocommerce-rest-api/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Версия 1.0.0
Расширение плагина conditional-shipping-for-woocommerce методами REST API.
Необходимо для передачи правил доставки в приложения, использующие REST API.
Конечная точка
Конечной точкой является /wp/v3/wcs_ruleset.
Пример URL: https://example.com/wp-json/wp/v3/wcs_ruleset
Авторизация пользователя
Авторизация пользователя выполняется через пароли приложений WP и REST API ядра WP, не через ключи REST API WC!!!
Запрос возможен для пользователей с правами read_private_posts.