# extendify/3.1.0/tests/playwright/QuickEdit/image-flows/setup.php

Extendify, version 3.1.0. 22 lines.

- Page: https://pluginprobe.com/plugins/extendify/3.1.0/code/tests/playwright/QuickEdit/image-flows/setup.php
- Raw: https://pluginprobe.com/plugins/extendify/3.1.0/raw/tests/playwright/QuickEdit/image-flows/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.0/code/tests/playwright/QuickEdit/image-flows/setup.php#L10-L20`.

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

// One core/image block — the picker dropdown anchors to it. URL-only (no
// attachment id) is acceptable; Image schema's apply() handles the no-id
// path so /quick-edit/save doesn't validate the URL points at a real
// media item. The placeholder URL is a known wp.org-served asset so the
// initial GET doesn't 404 in the browser before the test mocks land.
$content = "<!-- wp:image -->\n"
	. '<figure class="wp-block-image"><img src="https://s.w.org/style/images/about/WordPress-logotype-wmark.png" alt="WordPress mark" /></figure>'
	. "\n<!-- /wp:image -->\n";

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

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

```
