# extendify/3.2.1/src/AutoLaunch/functions/setup.js

Extendify, version 3.2.1. 37 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.2.1/code/src/AutoLaunch/functions/setup.js
- Raw: https://pluginprobe.com/plugins/extendify/3.2.1/raw/src/AutoLaunch/functions/setup.js
- Modified: 2026-09-09T18:23:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/extendify/3.2.1/code/src/AutoLaunch/functions/setup.js#L10-L20`.

```javascript
import apiFetch from '@wordpress/api-fetch';

export const prefetchAssistData = async () =>
	await apiFetch({ path: 'extendify/v1/auto-launch/prefetch-assist-data' });

export const postLaunchFunctions = () =>
	apiFetch({
		path: '/extendify/v1/auto-launch/post-launch-functions',
		method: 'POST',
	});

export const preLaunchFunctions = () =>
	apiFetch({
		path: '/extendify/v1/auto-launch/pre-launch-functions',
		method: 'POST',
	});

export const resetLaunchState = () =>
	apiFetch({
		path: '/extendify/v1/auto-launch/reset-launch-state',
		method: 'POST',
	});

export const runUpdates = () =>
	apiFetch({
		path: '/extendify/v1/auto-launch/run-updates',
		method: 'POST',
	});

export const forceReinstallPlugin = (slug) =>
	apiFetch({
		path: '/wp/v2/plugins',
		method: 'POST',
		headers: { 'X-Extendify-Force-Reinstall': '1' },
		data: { slug },
	});

```
