FileMaster
Search
Toggle Dark Mode
Home
/
.
/
wp-content
/
plugins
/
surecart
/
dist
/
components
/
collection
/
services
/
price
Edit File: index.js
import apiFetch from"../../functions/fetch";import{addQueryArgs}from"@wordpress/url";const path="surecart/v1/price/";export const getPrices=async({query:r,currencyCode:e="usd"})=>(await apiFetch({path:addQueryArgs(path,r)})).filter((r=>r.currency&&r.currency===e));
Save
Back