PluginProbe
Extendify / 3.2.2
Extendify v3.2.2
3.2.2 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 All 128 releases
extendify / src / Agent / follow-ups / cards / publish-page.js

publish-page.js in Extendify 3.2.2, at src/Agent/follow-ups/cards/publish-page.js

33 lines 974 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { __ } from '@wordpress/i18n';
2
3 export default {
4 id: 'publish-page',
5 follows: [
6 'create-page',
7 'edit-post-strings',
8 'edit-post-strings-editor',
9 'block-general',
10 'block-patching',
11 'select-block',
12 ],
13 // translators: Title of a card in the AI Agent chat, shown after the user edited a page that is still a draft.
14 title: __('Ready to publish?', 'extendify-local'),
15 // translators: Body of a card in the AI Agent chat, shown after the user edited a page that is still a draft.
16 body: __(
17 'This page is still a draft. Publish it so visitors can see it.',
18 'extendify-local',
19 ),
20 action: {
21 // translators: Button on a card in the AI Agent chat that opens a confirmation to publish the current page.
22 label: __('Publish page', 'extendify-local'),
23 workflowId: 'update-post-status',
24 },
25 score: ({ context, abilities }) =>
26 abilities?.canEditPosts &&
27 !context?.adminPage &&
28 context?.postId &&
29 context?.postStatus === 'draft'
30 ? 2
31 : 0,
32 };
33