Comments (2)
@adamziel Ok, using the blueprint builder I was able to run a runPHP
blueprint with PHP code.
When I copy/paste the code from the blueprint above, here's what it formats to in GitHub:
{
"landingPage": "/wp-admin/",
"phpExtensionBundles": [
"kitchen-sink"
],
"preferredVersions": {
"php": "7.4",
"wp": "5.9"
},
"steps": [
{
"step": "login",
"username": "admin",
"password": "password"
},
{
"step": "runPHP",
"code": "<?php require_once 'wordpress/wp-load.php'; wp_insert_post(array('post_title' => 'wp-load.php required for WP functionality', 'post_status' => 'publish')); ?>"
}
]
}
Which looks right. I can add this as a best practice for formatting blueprints to share on GitHub.
from wordpress-playground.
@flexseth this would require a fix in the Docusaurus setup which I’m not too keen about since we’ll likely ditch that tool in favor of the Playground-based documentation workflow. That switch will solve this issue, too, as live examples will become UI editable WordPress blocks.
I’m going to close this issue. I’m happy to reopen if you believe there are good reasons to keep it open.
from wordpress-playground.
Related Issues (20)
- php-wasm: easier to hit memory limit without PHP using mmap() and munmap() HOT 5
- PHP functions and PHP-executed processes have different working directories
- Update Blueprint schema to remove alerts when using the `shorthand` syntax
- php-wasm : Symlink infinite loop HOT 3
- Blueprint Verbosity
- Explore: Bun for bundling, testing, developing (instead of Vite, vitest, esbuild, rollup, multiple configs, ...) HOT 9
- Improve the description of SetSiteOptionsStep HOT 7
- Explore creating pure PHP dev server for Playground HOT 2
- PHP intl extension HOT 1
- Bug: Export changes to Github as PR not working HOT 1
- PDFs won't render in Chrome
- The documentation site is broken HOT 1
- Use global $wp_filter instead of an mu-plugin HOT 6
- Error when running "nx run docs-site:build" the first time HOT 4
- Explore biome as a replacement for eslint/prettier
- Build a Slide Block + export to pdf
- Memory access out of bounds with WooCommerce development plugin HOT 18
- GitHub Integration: Allow new themes/plugins to be exported in a PR HOT 2
- Integrate wp-cli directly on playground.wordpress.net HOT 1
- Support SQLite at the network connection level HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress-playground.