littlewonders/wordpress-replace-old-urls

There is no license information available for the latest version (1.0.2) of this package.

Simple page replacement for Wordpress, replaces specified values with others.

1.0.2 2023-01-13 02:04 UTC

This package is not auto-updated.

Last update: 2025-07-12 12:32:56 UTC


README

Internal package to replace URLs in output. Can be used for example when switching site domains but where data is still stored in the database with an incorrect domain.

Requires an array of domains to replace to be defined in wp-config.php:

define( 'URLS_TO_REPLACE', [
	"https://google.com/"
]);

This will replace all instances of https://google.com in the wordpress output HTML with the current site URL.