Aller au contenu principal

importWordPressFiles

Callable


  • 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.


    Parameters

    Returns any