PHP 8.2.31
Preview: api-fetch.js Size: 346 B
/home/nshryvcy/radiantskinclinics.org/wp-content/plugins/extendify_old/src/Shared/lib/api-fetch.js

import apiFetch from '@wordpress/api-fetch';

// wp/v2 or extendify/v1
const API_NAMESPACE_RE = /^(?:\/)?(?:wp|extendify)\/v\d+(?:\/|$|\?)/i;
apiFetch.use((options, next) => {
	if (!API_NAMESPACE_RE.test(options.path)) {
		return next(options);
	}

	return next({
		...options,
		headers: { ...options?.headers, 'X-Extendify': 'true' },
	});
});

Directory Contents

Dirs: 1 × Files: 8

Name Size Perms Modified Actions
__tests__ DIR
- drwxr-xr-x 2026-04-28 02:40:02
Edit Download
346 B lrw-r--r-- 2025-09-15 23:30:06
Edit Download
341 B lrw-r--r-- 2026-03-05 22:57:38
Edit Download
254 B lrw-r--r-- 2026-02-19 03:27:14
Edit Download
16.27 KB lrw-r--r-- 2026-02-19 03:27:14
Edit Download
206 B lrw-r--r-- 2026-02-19 03:27:14
Edit Download
1.93 KB lrw-r--r-- 2026-02-27 04:48:52
Edit Download
1.72 KB lrw-r--r-- 2026-02-19 03:27:14
Edit Download
499 B lrw-r--r-- 2026-02-19 03:27:14
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).