littlewonders/ wordpress-replace-old-urls
该包最新版本(1.0.2)没有可用的许可证信息。
WordPress页面简单替换,用其他值替换指定的值。
1.0.2
2023-01-13 02:04 UTC
Requires
- composer/installers: ^2.2
This package is not auto-updated.
Last update: 2024-09-21 08:46:16 UTC
README
内部包,用于替换输出中的URL。例如,当切换站点域名,但数据仍存储在带有错误域名的数据库中时,可以使用它。
需要在wp-config.php中定义要替换的域名的数组。
define( 'URLS_TO_REPLACE', [
"https://google.com/"
]);
这将替换WordPress输出HTML中所有https://google.com实例,用当前站点URL替换。