મુખ્ય સામગ્રીને બાયપાસ કરો

RunPHPWithOptionsStep

Runs PHP code. When running WordPress functions, the code key must first load wp-load.php and start with "<?php require_once '/wordpress/wp-load.php'; ".

@hasRunnableExample
@example
<code>
{
"step": "runPHPWithOptions",
"options": {
"code": "<?php require_once '/wordpress/wp-load.php'; update_option('blogname', file_get_contents('php://input'));?>",
"body": "Site Name Modified by runPHPWithOptions"
}
}
</code>

Index

Properties

Properties

options

options: PHPRunOptions

Run options (See /wordpress-playground/api/universal/interface/PHPRunOptions/))

step

step: runPHPWithOptions
Page Options