This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "extensions": { | |
| "bundles": { | |
| "bundle_stock_status": "instock", | |
| "bundle_stock_quantity": 15, | |
| "bundle_virtual": false, | |
| "bundle_layout": "default", | |
| "bundle_add_to_cart_form_location": "default", | |
| "bundle_editable_in_cart": true, | |
| "bundle_sold_individually_context": "product", | |
| "bundle_item_grouping": "parent", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X PUT https://example.com/wp-json/wc/v3/products/123 \ | |
| -u customer_key:customer_secret \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "addons": [ | |
| { | |
| "id": 1719406272, | |
| "name": "Handmade Engraving", | |
| "price": "120", | |
| "max": 12 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X POST https://example.com/wp-json/wc/v3/products \ | |
| -u customer_key:customer_secret \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "name": "Happiness Ring", | |
| "type": "simple", | |
| "regular_price": "21.99", | |
| "description": "Beautiful ring that will make you happy.", | |
| "exclude_global_add_ons": true, | |
| "addons": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X PUT https://example.com/wp-json/wc-product-add-ons/v2/global-add-ons/123 \ | |
| -u customer_key:customer_secret \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "name": "Personalization Options for rings", | |
| "restrict_to_category_ids": [ | |
| 22 | |
| ], | |
| "fields": [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X POST https://example.com/wp-json/wc-product-add-ons/v2/global-add-ons \ | |
| -u customer_key:customer_secret \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "name": "Personalization Options", | |
| "priority": 5, | |
| "restrict_to_category_ids": [], | |
| "fields": [ | |
| { | |
| "name": "Engraving", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X POST --location "https://example.com/wp-json/wc/store/v1/cart/add-item" \ | |
| -user consumer_key:consumer_secret \ | |
| -H "Accept: application/json" \ | |
| -H "nonce: deadbeef" \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "id": 653, | |
| "quantity": 2, | |
| "composite_configuration": [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X POST --location "https://example.com/wp-json/wc/store/v1/cart/update-item" \ | |
| -u consumer_key:consumer_secret \ | |
| -H "Accept: application/json" \ | |
| -H "nonce: deadbeef" \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "key": "e3ead8396bb9598bf7092a1e78446b9f", | |
| "quantity": 2 | |
| }' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X POST --location "https://example.com/wp-json/wc/store/v1/cart/add-item" \ | |
| -u customer_key:customer_secret \ | |
| -H "Accept: application/json" \ | |
| -H "nonce: deadbeef" \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "id": 138, | |
| "quantity": 2, | |
| "bundle_configuration": [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: All Products for WooCommerce Subscriptions - Hide Subscription plans for specific user roles. | |
| * Plugin URI: https://woocommerce.com/products/all-products-for-woocommerce-subscriptions/ | |
| * Description: Use this snippet to hide Subscription plans for specific user roles. | |
| * Version: 1.0 | |
| * Author: WooCommerce | |
| * Author URI: https://woocommerce.com/ | |
| * Developer: Jason Kytros | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X PUT https://example.com/wp-json/wc/v3/products/123 \ | |
| -u customer_key:customer_secret \ | |
| -H "Content-Type: application/json" \ | |
| -d '{ | |
| "addons": [ | |
| { | |
| "id": 1719406272 | |
| }, | |
| { | |
| "id": 1719406273 |
NewerOlder