PluginProbe
Extendify / 3.1.5
Extendify v3.1.5
3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 0.7.0 All 126 releases
extendify / src / AutoLaunch / functions / setup.js

setup.js in Extendify 3.1.5, at src/AutoLaunch/functions/setup.js

31 lines 732 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import apiFetch from '@wordpress/api-fetch';
2
3 export const prefetchAssistData = async () =>
4 await apiFetch({ path: 'extendify/v1/auto-launch/prefetch-assist-data' });
5
6 export const postLaunchFunctions = () =>
7 apiFetch({
8 path: '/extendify/v1/auto-launch/post-launch-functions',
9 method: 'POST',
10 });
11
12 export const preLaunchFunctions = () =>
13 apiFetch({
14 path: '/extendify/v1/auto-launch/pre-launch-functions',
15 method: 'POST',
16 });
17
18 export const runUpdates = () =>
19 apiFetch({
20 path: '/extendify/v1/auto-launch/run-updates',
21 method: 'POST',
22 });
23
24 export const forceReinstallPlugin = (slug) =>
25 apiFetch({
26 path: '/wp/v2/plugins',
27 method: 'POST',
28 headers: { 'X-Extendify-Force-Reinstall': '1' },
29 data: { slug },
30 });
31