PluginProbe
Extendify / 3.1.1
Extendify v3.1.1
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / tests / playwright / QuickEdit / topbar-toggle-order / setup.php

setup.php in Extendify 3.1.1, at tests/playwright/QuickEdit/topbar-toggle-order/setup.php

19 lines 581 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 require '/wordpress/wp-load.php';
3
4 // One tagged block is enough — the QE bundle only mounts (and only then
5 // repositions the admin-bar toggle) when the page has taggable targets.
6 $content = "<!-- wp:heading -->\n"
7 . "<h2 class=\"wp-block-heading\">Heading for the topbar order spec.</h2>\n"
8 . "<!-- /wp:heading -->\n";
9
10 $pageId = wp_insert_post([
11 'post_type' => 'page',
12 'post_status' => 'publish',
13 'post_title' => 'QE Topbar Toggle Order Home',
14 'post_content' => $content,
15 ]);
16
17 update_option('show_on_front', 'page');
18 update_option('page_on_front', $pageId);
19