wcm-access-discounts
Installation
SKILL.md
WooCommerce Memberships: access and discounts
Use this when an integration needs to decide whether a user can access content/products, alter restriction behavior, adjust drip-content timing, grant access from products, or work with member prices. This is where generic WooCommerce or WordPress assumptions most often produce subtle bugs.
Misconception this skill corrects
"Membership access is a simple active-status check, and member discounts are just a product price filter."
Memberships combines plan rules, user membership status, access start time, delayed/dripped access, product/category restrictions, purchase restrictions, product grants, and price-adjustment filters. Use the public capability/discount APIs and the Memberships filters at the rule layer.
When to use this skill
Trigger when ANY of the following is true:
- The user asks "can this member view/buy/access", "hide protected product", "drip content", "scheduled access", "member discount", "membership price", "grant access product", or "original price before discount".
- Code contains
wc_memberships_user_can(),wc_memberships_is_post_content_restricted(),wc_memberships_is_product_viewing_restricted(),wc_memberships_access_from_time,wc_memberships_user_object_access_start_time,wc_memberships_user_has_member_discount(),wc_memberships_get_member_product_discount(), orwc_memberships_get_discounted_price. - You are writing WooCommerce price filters in a store that uses Memberships.