@agorio/sdk • Docs
Function: isWooCommerceStore()
isWooCommerceStore(
domain,fetchFn):Promise<boolean>
Check if a domain is likely a WooCommerce store by probing /wp-json/wc/v3/products. Returns true if the endpoint responds with a 200 OK (even without auth).
Parameters
• domain: string
• fetchFn: any = globalThis.fetch
Returns
Promise<boolean>
Defined in
src/adapters/woocommerce.ts:379