File tree Expand file tree Collapse file tree 1 file changed +7
-27
lines changed
packages/playground/website/public Expand file tree Collapse file tree 1 file changed +7
-27
lines changed Original file line number Diff line number Diff line change @@ -474,26 +474,6 @@ <h2>✨ WordPress PHP Playground ✨</h2>
474
474
475
475
< h2 > 💡 Tips</ h2 >
476
476
< ul >
477
- < li >
478
- < strong > 🌟 WordPress is available!</ strong > Run
479
- < code > require '/wordpress/wp-load.php';</ code > to
480
- load the latest WordPress release. For example:
481
- < pre
482
- style ="
483
- background: #f5f5f5;
484
- padding: 8px;
485
- margin: 8px 0;
486
- border-radius: 4px;
487
- font-size: 13px;
488
- overflow-x: auto;
489
- "
490
- > < code > <?php
491
- require '/wordpress/wp-load.php';
492
-
493
- $html_processor = WP_HTML_Processor::create_fragment('<p> <span> Hey!</span> </p> ');
494
- $html_processor-> next_tag();
495
- var_dump($html_processor-> get_tag());</ code > </ pre >
496
- </ li >
497
477
< li >
498
478
< strong > 🔗 Embed in your app:</ strong > You can embed
499
479
this playground in an iframe to provide interactive
@@ -734,15 +714,15 @@ <h2>💡 Tips</h2>
734
714
restorePHPVersionFromURL ( ) ;
735
715
736
716
const defaultCode = `<?php
737
- // Welcome to PHP Playground!
738
- $message = "Hello from PHP " . phpversion();
739
- echo $message;
717
+ echo "Hello from PHP " . phpversion();
718
+ echo "<br>";
740
719
741
- function greet($name) {
742
- return "Hello, " . $name . "!";
743
- }
720
+ // WordPress is available if you need it!
721
+ require '/wordpress/wp-load.php';
744
722
745
- echo greet("World");
723
+ $html_processor = WP_HTML_Processor::create_fragment('<p><span>Hey!</span></p>');
724
+ $html_processor->next_tag();
725
+ var_dump($html_processor->get_tag());
746
726
?>` ;
747
727
748
728
// Load initial state from URL
You can’t perform that action at this time.
0 commit comments