X7ROOT File Manager
Current Path:
/home/gfecatvj/4abetter.us/wp-content/plugins/leadin/scripts/utils
home
/
gfecatvj
/
4abetter.us
/
wp-content
/
plugins
/
leadin
/
scripts
/
utils
/
📁
..
📄
appUtils.ts
(296 B)
📄
backgroundAppUtils.ts
(1.27 KB)
📄
contentEmbedInstaller.ts
(743 B)
📄
iframe.ts
(1011 B)
📄
isRefreshTokenAvailable.ts
(155 B)
📄
queryParams.ts
(413 B)
📄
withMetaData.ts
(802 B)
Editing: contentEmbedInstaller.ts
type ContentEmbedInfoResponse = { success: boolean; data?: { // Empty if user doesn't have permissions or plugin already activated activateAjaxUrl?: string; message: string; }; }; export function startInstall(nonce: string) { const formData = new FormData(); const ajaxUrl = (window as any).ajaxurl; formData.append('_wpnonce', nonce); formData.append('action', 'content_embed_install'); return fetch(ajaxUrl, { method: 'POST', body: formData, keepalive: true, }).then<ContentEmbedInfoResponse>(res => res.json()); } export function startActivation(requestUrl: string) { return fetch(requestUrl, { method: 'POST', keepalive: true, }).then<ContentEmbedInfoResponse>(res => res.json()); }
Upload File
Create Folder