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

Extendify, version 2.2.0. 9 lines.

- Page: https://pluginprobe.com/plugins/extendify/2.2.0/code/src/Library/api/WPApi.js
- Raw: https://pluginprobe.com/plugins/extendify/2.2.0/raw/src/Library/api/WPApi.js
- Modified: 2024-07-04T18:26:42+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/2.2.0/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 },
	});

```
