@wp-playground/clientInterfacesWriteFilesStepSur cette pageWriteFilesStep <DirectoryResource>Writes multiple files to a specified directory in the Playground filesystem.@hasRunnableExample@landingPage/test.php@example<code>{ "step": "writeFiles", "writeToPath": "/wordpress/wp-content/plugins/my-plugin", "filesTree": { "name": "my-plugin", "files": { "index.php": "<?php echo '<a>Hello World!</a>'; ?>", "public": { "style.css": "a { color: red; }" } } }}</code>Index PropertiesfilesTreestepwriteToPathProperties filesTreefilesTree: DirectoryResourceThe data to writestepstep: writeFileswriteToPathwriteToPath: stringThe path of the file to write to
Writes multiple files to a specified directory in the Playground filesystem.
/test.php