wc-product-crud-cache

Installation
SKILL.md

WooCommerce product CRUD and request cache

Use this skill for products and variations whenever an extension reads, changes, imports, or caches catalog data. WooCommerce 11.0 enables product instance caching for newly installed stores; existing stores preserve their previous opt-in state. Correct code must work in both modes.

Public contract

Load and persist through WooCommerce CRUD:

$product = wc_get_product( $product_id );

if ( ! $product instanceof WC_Product ) {
    return;
}

$product->set_regular_price( wc_format_decimal( $price ) );
$product->set_name( sanitize_text_field( $name ) );
$product->save();
Installs
1
GitHub Stars
22
First Seen
1 day ago
wc-product-crud-cache — lonsdale201/wp-agent-skills