X7ROOT File Manager
Current Path:
/home/hikrsdyp/public_html/wp-content/plugins/extendify/src/Shared/lib
home
/
hikrsdyp
/
public_html
/
wp-content
/
plugins
/
extendify
/
src
/
Shared
/
lib
/
??
..
??
__tests__
??
api-fetch.js
(346 B)
??
dom.js
(254 B)
??
extra-body.js
(307 B)
??
pages.js
(15.94 KB)
??
parsing.js
(205 B)
??
unsplash.js
(1.91 KB)
??
utils.js
(1.68 KB)
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