br-woo-routes
CommunityExpose WooCommerce data securely via REST.
AuthorLonsdale201
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Expose WooCommerce data (orders, products, customers, coupons) over REST using BetterRoute to create a controlled, namespace-scoped API layer with role and capability gates.
Core Features & Use Cases
- Registers REST endpoints for WC data via BetterRoute::wooRouteRegistrar()->register(...) with configurable basePath, HPOS enforcement, and deleteMode.
- Enforces customer-only read/write semantics, including required WP capabilities for create/edit/delete operations and role-based filtering for customers.
- Provides robust meta-data handling and list query parsers to support predictable filtering, pagination, and field selection.
Quick Start
Call BetterRoute::wooRouteRegistrar()->register('your-namespace', $options) inside your REST bootstrap to expose WC data.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: br-woo-routes Download link: https://github.com/Lonsdale201/wp-agent-skills/archive/main.zip#br-woo-routes Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.