# extendify/3.2.3/src/Agent/follow-ups/cards/publish-page.js

Extendify, version 3.2.3. 33 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.2.3/code/src/Agent/follow-ups/cards/publish-page.js
- Raw: https://pluginprobe.com/plugins/extendify/3.2.3/raw/src/Agent/follow-ups/cards/publish-page.js
- Modified: 2026-10-01T15:30:38+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/3.2.3/code/src/Agent/follow-ups/cards/publish-page.js#L10-L20`.

```javascript
import { __ } from '@wordpress/i18n';

export default {
	id: 'publish-page',
	follows: [
		'create-page',
		'edit-post-strings',
		'edit-post-strings-editor',
		'block-general',
		'block-patching',
		'select-block',
	],
	// translators: Title of a card in the AI Agent chat, shown after the user edited a page that is still a draft.
	title: __('Ready to publish?', 'extendify-local'),
	// translators: Body of a card in the AI Agent chat, shown after the user edited a page that is still a draft.
	body: __(
		'This page is still a draft. Publish it so visitors can see it.',
		'extendify-local',
	),
	action: {
		// translators: Button on a card in the AI Agent chat that opens a confirmation to publish the current page.
		label: __('Publish page', 'extendify-local'),
		workflowId: 'update-post-status',
	},
	score: ({ context, abilities }) =>
		abilities?.canEditPosts &&
		!context?.adminPage &&
		context?.postId &&
		context?.postStatus === 'draft'
			? 2
			: 0,
};

```
