Open flexseth opened 8 months ago
Error
Error: Invalid blueprint: must have required property 'code' at /steps/0
at compileBlueprint
I think this issue is caused by the code
key, according to the documentation it should start with "<?php require_once 'wordpress/wp-load.php'; ".
Therefore the request should be updated as follows:
{
"steps": [
{
"step": "runPHP",
"options": {
"code": "<?php require_once 'wordpress/wp-load.php'; ?php echo $_SERVER['CONTENT_TYPE']; ?>",
"headers": {
"Content-type": "text/plain"
}
}
}
]
}
It should then return a successful response.
Can this one be assigned to me pls?
Can this one be assigned to me pls?
Sure, thank you for helping :slightly_smiling_face:
No content on demo
https://wordpress.github.io/wordpress-playground/blueprints-api/steps/#RunPHPWithOptionsStep
Neither Blueprint API or function API demos are working