There is the unique product in front on you. The world won't be the same again. Welcome! The script which replace one phrase to another in you mysql Database. Just point two words into console string and script will do everything for you.
-
cd /path/to/project/with/package/json/on/root
>> composer require slovenberg/url-db-cleaner
-
You should have next standard variables in PHP environment: DB_HOST, DB_NAME, DB_USER, DB_PASSWORD.
-
There is only one public static method which can start the main process: start. Insert it into your script like:
use slovenberg\WpDbCleaner\Main;
Main::start();
or use short version:
slovenberg\WpDbCleaner\Main::start();
- Run your script by console like:
>> php your_script.php old_word new_word