X7ROOT File Manager
Current Path:
/home/gfecatvj/4abetter.us/wp-content/plugins/extendify/src/Shared/lib
home
/
gfecatvj
/
4abetter.us
/
wp-content
/
plugins
/
extendify
/
src
/
Shared
/
lib
/
📁
..
📁
__tests__
📄
api-fetch.js
(346 B)
📄
data.js
(341 B)
📄
dom.js
(254 B)
📄
pages.js
(16.27 KB)
📄
parsing.js
(206 B)
📄
unsplash.js
(1.93 KB)
📄
utils.js
(1.72 KB)
📄
wp.js
(499 B)
Editing: 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' }, }); });
Upload File
Create Folder