Pular para o conteúdo principal

ImportWordPressFilesStep <ResourceType>

Imports top-level WordPress files from a given zip file into the documentRoot. For example, if a zip file contains the wp-content and wp-includes directories, they will replace the corresponding directories in Playground's documentRoot.

Imported copies of Playground-owned runtime artifacts are discarded. For example, an archive cannot replace mu-plugins/sqlite-database-integration, mu-plugins/0-playground.php, or a Playground-generated db.php. If those paths still exist in the importing document root, its copies are retained. An unmarked custom db.php remains part of the imported site.

A formatVersion: 2 archive is otherwise authoritative for user-owned wp-content: a customized Twenty Twenty-Five theme replaces the boot default, while an absent theme remains deleted. For an older archive, stock paths omitted by the exporter, such as plugins/akismet, plugins/hello.php, and themes/twentytwentyfive, are restored from the importing document root only when absent from the archive.

@example
<code>
{
"step": "importWordPressFiles",
"wordPressFilesZip": {
"resource": "url",
"url": "https://mysite.com/import.zip"
}
}
</code>

Index

Properties

optionalpathInZip

pathInZip?: string

The path inside the zip file where the WordPress files are.

step

step: importWordPressFiles

wordPressFilesZip

wordPressFilesZip: ResourceType

The zip file containing the top-level WordPress files and directories.

Page Options