# extendify/3.1.1/tests/playwright/QuickEdit/image-dropdown/setup.php

Extendify, version 3.1.1. 27 lines.

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

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

$imageBlock = "<!-- wp:image {\"width\":\"160px\",\"height\":\"160px\"} -->\n"
	. '<figure class="wp-block-image is-resized"><img src="https://s.w.org/style/images/about/WordPress-logotype-wmark.png" alt="WordPress mark" style="width:160px;height:160px;object-fit:contain" /></figure>'
	. "\n<!-- /wp:image -->\n";

$spacer = "<!-- wp:spacer {\"height\":\"40px\"} -->\n"
	. '<div style="height:40px" aria-hidden="true" class="wp-block-spacer"></div>'
	. "\n<!-- /wp:spacer -->\n";

$paragraph = "<!-- wp:paragraph -->\n"
	. '<p>A paragraph above the images for the cross-block click test.</p>'
	. "\n<!-- /wp:paragraph -->\n";

$content = $paragraph . $spacer . $imageBlock . $spacer . $imageBlock;

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

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

```
