Edit Site URL on WordPress Temporarily

Change the WordPress URL with two lines of code for a temporary time.

This is a short snippet to get your WordPress URL changed temporarily if you want to do quick debugs. Add the following code into the wp-config.php file. This will change the path. 

define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com' );