| 1 |
<?php |
| 2 |
require '/wordpress/wp-load.php'; |
| 3 |
|
| 4 |
$content = "<!-- wp:heading -->\n" |
| 5 |
. "<h2 class=\"wp-block-heading\">A heading where toolbar tooltips can be hovered for a while.</h2>\n" |
| 6 |
. "<!-- /wp:heading -->\n"; |
| 7 |
|
| 8 |
$pageId = wp_insert_post([ |
| 9 |
'post_type' => 'page', |
| 10 |
'post_status' => 'publish', |
| 11 |
'post_title' => 'Toolbar Tooltip Test Home', |
| 12 |
'post_content' => $content, |
| 13 |
]); |
| 14 |
|
| 15 |
update_option('show_on_front', 'page'); |
| 16 |
update_option('page_on_front', $pageId); |
| 17 |
|