# extendify/3.1.1/tests/playwright/QuickEdit/auto-save/setup.php

Extendify, version 3.1.1. 28 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.1.1/code/tests/playwright/QuickEdit/auto-save/setup.php
- Raw: https://pluginprobe.com/plugins/extendify/3.1.1/raw/tests/playwright/QuickEdit/auto-save/setup.php
- Modified: 2026-06-11T18:37:12+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.1.1/code/tests/playwright/QuickEdit/auto-save/setup.php#L10-L20`.

```php
<?php
require '/wordpress/wp-load.php';

// Auto-save-on-implicit-close seed. Three quick-editable headings: A + B
// drive the cross-block gesture (edit A, click B → A auto-saves and QE
// opens on B), C drives the click-outside gesture (edit C, click the
// footer → C auto-saves and the canvas tears down). Headings get both
// pills and open QE on click, so the spec never has to touch a pill.
$content = "<!-- wp:heading -->\n"
	. "<h2 class=\"wp-block-heading\">Heading A for cross-block auto-save.</h2>\n"
	. "<!-- /wp:heading -->\n\n"
	. "<!-- wp:heading -->\n"
	. "<h2 class=\"wp-block-heading\">Heading B is the cross-block target.</h2>\n"
	. "<!-- /wp:heading -->\n\n"
	. "<!-- wp:heading -->\n"
	. "<h2 class=\"wp-block-heading\">Heading C for click-outside auto-save.</h2>\n"
	. "<!-- /wp:heading -->\n";

$pageId = wp_insert_post([
	'post_type'    => 'page',
	'post_status'  => 'publish',
	'post_title'   => 'QE Auto-Save Home',
	'post_content' => $content,
]);

update_option('show_on_front', 'page');
update_option('page_on_front', $pageId);

```
