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 / Agent / workflows / settings / edit-wp-setting.js

edit-wp-setting.js in Extendify 3.2.1, at src/Agent/workflows/settings/edit-wp-setting.js

30 lines 759 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { UpdateSettingConfirm } from '@agent/workflows/settings/components/UpdateSettingConfirm';
2 import { __ } from '@wordpress/i18n';
3
4 const { abilities } = window.extAgentData;
5
6 export const allowedSettings = [
7 'posts_per_page',
8 'use_smilies',
9 'start_of_week',
10 'time_format',
11 'date_format',
12 'title',
13 'description',
14 ];
15 export default {
16 available: () => abilities?.canEditSettings,
17 id: 'edit-wp-setting',
18 whenFinished: { component: UpdateSettingConfirm },
19 example: {
20 text: __('Change website title', 'extendify-local'),
21 agentResponse: {
22 // translators: The agent asks this, then waits for the user to type their new site title.
23 reply: __(
24 'What would you like your new website title to be?',
25 'extendify-local',
26 ),
27 },
28 },
29 };
30