What problem does it solve?
This Skill prevents subtle WooCommerce Memberships bugs by ensuring access checks, restriction/drip behavior, product grants, and member discounts are computed using the Memberships rule and pricing layers instead of simplified status or generic discount assumptions.
Core Features & Use Cases
- Correct access control decisions: Use
wc_memberships_user_can() (and the related restricted/public helpers) to determine whether a specific user can view or purchase a specific post/product object.
- Accurate drip-content timing and start-time overrides: Extend or override access start timestamps via
wc_memberships_access_from_time and wc_memberships_user_object_access_start_time to avoid date-meta mistakes.
- Reliable product-grant and member-discount pricing: Resolve which parent/variation product grants access, and compute member discounts using the Memberships discount APIs and hooks such as
wc_memberships_get_discounted_price and wc_memberships_get_member_product_discount.
Quick Start
Ask the AI to help you decide whether a given user can view a specific Memberships-protected product or post and which exact Memberships hook/API to use for your integration.