Add comprehensive e-commerce abilities to extrachill-shop plugin to support the API delegation wrapper architecture.
wp_register_ability(
'extrachill/shop-products',
[
'label' => __('Manage Products', 'extrachill-shop'),
'description' => __('Create, read, update, and delete WooCommerce products'),
'category' => 'extrachill-shop',
'input_schema' => [
'type' => 'object',
'properties' => [
'action' => ['type' => 'string', 'enum' => ['create', 'get', 'update', 'delete']],
'product_id' => ['type' => 'integer'],
'product_data' => ['type' => 'object', 'description' => 'WooCommerce product data']
],
'required' => ['action']
],
'output_schema' => [
'type' => 'object',
'properties' => [
'product_id' => ['type' => 'integer'],
'product' => ['type' => 'object'],
'success' => ['type' => 'boolean']
]
],
'execute_callback' => 'extrachill_shop_ability_products',
'permission_callback' => 'extrachill_shop_can_manage_products'
]
);
Summary
Add comprehensive e-commerce abilities to extrachill-shop plugin to support the API delegation wrapper architecture.
Current State
Required Abilities to Add
extrachill/shop-products: Product management and catalog operationsextrachill/shop-orders: Order processing and managementextrachill/shop-shipping-address: Shipping address managementextrachill/shop-shipping-labels: Shipping label generationextrachill/shop-stripe-connect: Stripe Connect integration for artist payoutsextrachill/shop-stripe-webhook: Stripe webhook processingextrachill/shop-product-images: Product image managementextrachill/shop-taxonomy-counts: Product category/tag statisticsImplementation Details
inc/core/abilities.php(create if doesn't exist)extrachill-shopcategory for commerce-related abilitiesExample Ability Registration
Success Criteria
Dependencies