| 开发者 |
rebelcode
jeangalea |
|---|---|
| 更新时间 | 2026年11月17日 20:54 |
| PHP版本: | 8.0 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
https:\/\/example.com is found when you search for https://example.com.wp swapline run, wp swapline backup and wp swapline import, with the same column options as the admin screen.swapline folder to /wp-content/plugins/, or install the zip from Plugins > Add New.Yes. Do a dry run first and check the diff. Tick "Back up the selected tables first" when you start a live run, and History shows a button to restore that backup next to the run. History can also undo a live run cell by cell.
Yes. Return a different capability from the swapline_capability filter, for example add_filter( 'swapline_capability', fn() => 'manage_woocommerce' );. It controls the Search & Replace and History screens. Backups, downloads, imports, restores and runs on the users tables always need manage_options (manage_network on multisite), because they expose password hashes and can create administrators. Anyone you give the capability to can rewrite your posts, options and settings, so pick a role you'd trust with the database.
WordPress uses post GUIDs as permanent identifiers, and feed readers rely on them not changing. Untick the option if you really need to change them.
No. Only values are changed, inside serialized data and JSON alike, which matches how WordPress and WP-CLI handle it.
Enter the pattern without delimiters, for example https?://old\.example\.com. Use $1, $2 in the replacement for captured groups.
In a folder with a random name inside your uploads directory. It has .htaccess and web.config rules that deny web access, and the file names are random too, so on servers that ignore those rules (such as nginx) the file names can't be guessed. If the server serves files from the folder, the Backup tab says so and names the folder, so you can add a rule that denies access to it. Download backups from Tools > Search & Replace > Backup.
SQL files with CREATE TABLE, DROP TABLE, INSERT ... VALUES, LOCK/UNLOCK TABLES and session SET statements, which covers backups from Swapline, WP-CLI and mysqldump. Anything else, such as GRANT, triggers or stored procedures, is listed and nothing is imported. Table names must use this site's table prefix.
It uses the same engine as the admin screen, so it also replaces JSON-escaped values, reports broken serialized values it skipped, can load a saved profile with --profile, and records the run in the admin history so you can view the diff.
--columns and --skip-columns.wp swapline run asks before a live run writes. Add --yes to skip the question.swapline_capability filter sets which capability can use Swapline.wp swapline backup, wp swapline import and --backup on wp swapline run.