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 / add-to-menu.js

add-to-menu.js in Extendify 3.2.2, at src/Agent/follow-ups/cards/add-to-menu.js

23 lines 1.0 KB
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: 'add-to-menu',
5 follows: ['update-post-status'],
6 // translators: Title of a card in the AI Agent chat, shown after the user published a page or post.
7 title: __('Add it to your menu', 'extendify-local'),
8 // translators: Body of a card in the AI Agent chat, shown after the user published a page or post.
9 body: __(
10 'Now that it is published, add it to your site menu so visitors can find it.',
11 'extendify-local',
12 ),
13 action: {
14 // translators: Button on a card in the AI Agent chat that asks the agent to add the published page or post to the site menu.
15 label: __('Add to menu', 'extendify-local'),
16 // select-block has no example, so find-agent routes this message.
17 // translators: Shown in the AI Agent chat as the user's own request, sent when they click the "Add to menu" button.
18 message: __('Add this to the menu', 'extendify-local'),
19 },
20 // The publish confirm writes the new status into the context.
21 score: ({ context }) => (context?.postStatus === 'publish' ? 1 : 0),
22 };
23