PluginProbe
Extendify / 3.2.1
Extendify v3.2.1
3.2.1 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 All 127 releases
extendify / src / AutoLaunch / functions / setup.js

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

37 lines 862 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 resetLaunchState = () =>
19 apiFetch({
20 path: '/extendify/v1/auto-launch/reset-launch-state',
21 method: 'POST',
22 });
23
24 export const runUpdates = () =>
25 apiFetch({
26 path: '/extendify/v1/auto-launch/run-updates',
27 method: 'POST',
28 });
29
30 export const forceReinstallPlugin = (slug) =>
31 apiFetch({
32 path: '/wp/v2/plugins',
33 method: 'POST',
34 headers: { 'X-Extendify-Force-Reinstall': '1' },
35 data: { slug },
36 });
37