@wp-playground/clientFunctionsrunPHPrunPHP CallablerunPHP(php: UniversalPHP, args: Omit<RunPHPStep, step>, progressArgs?: StepProgress): Promise<PHPResponse>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'; ".Parametersphp: UniversalPHPA PHP instance or Playground client.args: Omit<RunPHPStep, step>optionalprogressArgs: StepProgressReturns Promise<PHPResponse>
Runs PHP code. When running WordPress functions, the
code
key must first loadwp-load.php
and start with"<?php require_once 'wordpress/wp-load.php'; "
.