PluginProbe
Extendify / 3.1.6
Extendify v3.1.6
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 / Agent / abilities / options.js

options.js in Extendify 3.1.6, at src/Agent/abilities/options.js

33 lines 1.0 KB
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 import { __ } from '@wordpress/i18n';
3
4 const path = '/extendify/v1/agent/site-options';
5
6 export const options = {
7 name: 'extendify/options',
8 label: __('Site settings', 'extendify-local'),
9 description:
10 'Read the settings this site stores, which is where WordPress, its theme and its plugins each keep their configuration. The address the site sends mail to is admin_email. Search by part of a name to find where something is kept, or name the settings to read them outright.',
11 inputSchema: {
12 type: 'object',
13 properties: {
14 search: {
15 type: 'string',
16 description:
17 'Part of a setting name, such as the prefix a plugin puts on its own.',
18 },
19 name: {
20 type: 'string',
21 description: 'A setting to read.',
22 },
23 names: {
24 type: 'array',
25 items: { type: 'string' },
26 description: 'Several settings to read at once.',
27 },
28 },
29 },
30 annotations: { readonly: true },
31 execute: (input = {}) => apiFetch({ path, method: 'POST', data: input }),
32 };
33