# extendify/3.1.5/src/Library/api/WPApi.js

Extendify, version 3.1.5. 12 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.1.5/code/src/Library/api/WPApi.js
- Raw: https://pluginprobe.com/plugins/extendify/3.1.5/raw/src/Library/api/WPApi.js
- Modified: 2026-05-19T15:40:58+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.1.5/code/src/Library/api/WPApi.js#L10-L20`.

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

export const updateOption = async (option, value) =>
	await apiFetch({
		path: '/extendify/v1/library/settings/single',
		method: 'POST',
		data: { key: option, value },
	});

export const getSiteImages = () =>
	apiFetch({ path: '/extendify/v1/shared/site-images' });

```
