Easy Local Site

Aid the development process on a local WordPress site by adding some handy reminders and overriding outgoing emails.

Author:Simon Blackbourn @ Lumpy Lemon (profile at wordpress.org)
WordPress version required:3.1
WordPress version tested:5.5.3
Plugin version:0.3
Added to WordPress repository:19-11-2012
Last updated:10-08-2020
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:100
Rated by:1
Plugin URI:https://github.com/lumpysimon/wp-easy-local-s...
Total downloads:1 517
Active installs:10+
plugin download
Click to start download

When working on a local site and a production site at the same time, things can easily get confusing and you forget which site you’re looking at. This plugin adds a hard-to-miss, bright orange reminder to the toolbar and prepends [LOCAL] to the title tag on your local site.

If you’ve imported a database from a production site, you may also want to avoid sending emails out to real users. This plugin overrides the ‘to’ address of all outgoing emails, sending them instead to an address specified by you. This enables you to test contact forms, notifications or any other outgoing email communications. All emails will have the original recipient’s email address prepended to the subject line so you can see at a glance who they were originally intended for.

The WP_LOCAL_DEV constant method

You must use the WP_LOCAL_DEV constant method as outlined by Mark Jaquith: markjaquith.wordpress.com/2011/06/24/wordpress-local-dev-tips

If the WP_LOCAL_DEV constant is not defined this plugin will do nothing. This means you can safely put it in your mu-plugins folder and include it in your Git repository on a production site.


ChangeLog