PluginProbe
Extendify / 3.1.0
Extendify v3.1.0
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 / text-color / setup.php

setup.php in Extendify 3.1.0, at tests/playwright/QuickEdit/text-color/setup.php

23 lines 832 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 $content = "<!-- wp:heading -->\n"
5 . "<h2 class=\"wp-block-heading\">Custom <mark style=\"background-color:#ff66aa\" class=\"has-inline-color\">Made</mark> Wood Tables Crafted to Yes!</h2>\n"
6 . "<!-- /wp:heading -->\n\n"
7 . "<!-- wp:heading -->\n"
8 . "<h2 class=\"wp-block-heading\">A plain heading with no pre-existing marks at all.</h2>\n"
9 . "<!-- /wp:heading -->\n\n"
10 . "<!-- wp:paragraph -->\n"
11 . "<p>Here is <mark style=\"background-color:#cf2e2e\" class=\"has-inline-color\">some</mark> sample text</p>\n"
12 . "<!-- /wp:paragraph -->\n";
13
14 $pageId = wp_insert_post([
15 'post_type' => 'page',
16 'post_status' => 'publish',
17 'post_title' => 'Text Color Test Home',
18 'post_content' => $content,
19 ]);
20
21 update_option('show_on_front', 'page');
22 update_option('page_on_front', $pageId);
23