# extendify/3.1.1/tests/playwright/QuickEdit/cursor-rule/setup.php

Extendify, version 3.1.1. 29 lines.

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

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

// Cursor-rule seed: a tagged paragraph with an inline link
// (crosshair on text, pointer on the anchor), a search block (form
// control branch), and a sibling page so the "edit mode off" assertion
// has a real URL to land on with the same shape.
$homeContent = "<!-- wp:paragraph -->\n"
	. "<p>Cursor rule paragraph with an <a href=\"/about/\">inline link</a> inside.</p>\n"
	. "<!-- /wp:paragraph -->\n\n"
	. "<!-- wp:search {\"label\":\"Search\",\"buttonText\":\"Go\"} /-->\n";

$pageId = wp_insert_post([
	'post_type'    => 'page',
	'post_status'  => 'publish',
	'post_title'   => 'QE Cursor Rule Home',
	'post_content' => $homeContent,
]);

wp_insert_post([
	'post_type'    => 'page',
	'post_status'  => 'publish',
	'post_title'   => 'About',
	'post_content' => "<!-- wp:heading --><h2 class=\"wp-block-heading\">About page reached.</h2><!-- /wp:heading -->\n",
]);

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

```
