Title: Easy Local Site
Author: Simon Blackbourn
Published: <strong>19.11.2012</strong>
Last modified: 10.08.2020

---

Поиск плагинов

Этот плагин **не тестировался с последними 3 основными выпусками WordPress**. Скорее
всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

![](https://s.w.org/plugins/geopattern-icon/easy-local-site.svg)

# Easy Local Site

 Автор: [Simon Blackbourn](https://profiles.wordpress.org/lumpysimon/)

[Скачать](https://downloads.wordpress.org/plugin/easy-local-site.zip)

 * [Детали](https://ru.wordpress.org/plugins/easy-local-site/#description)
 * [Отзывы](https://ru.wordpress.org/plugins/easy-local-site/#reviews)
 *  [Установка](https://ru.wordpress.org/plugins/easy-local-site/#installation)
 * [Разработка](https://ru.wordpress.org/plugins/easy-local-site/#developers)

 [Поддержка](https://wordpress.org/support/plugin/easy-local-site/)

## Описание

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](http://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.

## Установка

To install directly from your WordPress dashboard:

 1. Go to the _Plugins_ menu and click _Add New_.
 2. Search for _Easy Local Site_.
 3. Click _Install Now_ next to the Easy Local Site plugin.
 4. Activate the plugin.

Alternatively, see the official WordPress Codex guide to [Manually Installing Plugins](https://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).

#### Using the mu-plugins folder is better

Ideally you should install Easy Local Site in wp-content/mu-plugins (plugins in 
here are ‘Must Use’ and are automatically activated). This will mean that it is 
always activated, even after migrating a database from a production site where the
plugin is not installed/activated, so you don’t have to remember to manually activate
it.

#### 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](http://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.

#### Overriding outgoing emails

To override outgoing emails, you must define WP_LOCAL_EMAIL in local-config.php 
as follows:

define( ‘WP_LOCAL_EMAIL’, ‘me@myemailaddress.com’ );

#### Download from GitHub

You can also download this plugin from GitHub at [https://github.com/lumpysimon/wp-easy-local-site](https://github.com/lumpysimon/wp-easy-local-site)

## Отзывы

![](https://secure.gravatar.com/avatar/08ec71f18b939321313c3c7aeae85d924ad1d832ddd09d48c377e38f196077e4?
s=60&d=retro&r=g)

### 󠀁[Never mistake live site for the test site](https://wordpress.org/support/topic/never-mistake-live-site-for-the-test-site-2/)󠁿

 [carlfj](https://profiles.wordpress.org/carlfj/) 07.02.2017

Ever made a change during development or testing content on a website, believing
you are just testing you local site but in fact you just changed the live site instead?
Or vice versa. With this plugin you get used to the red rectangle with the lettering
Local site and the [Local site] prefix in the title bar. It could be a bit more 
clear that the emails are only redirected when the WP_LOCAL_EMAIL variable is set:
define( 'WP_LOCAL_EMAIL', 'me@example.com' );

 [ Посмотреть 1 отзыв ](https://wordpress.org/support/plugin/easy-local-site/reviews/)

## Участники и разработчики

«Easy Local Site» — проект с открытым исходным кодом. В развитие плагина внесли 
свой вклад следующие участники:

Участники

 *   [ Simon Blackbourn ](https://profiles.wordpress.org/lumpysimon/)

[Перевести «Easy Local Site» на ваш язык.](https://translate.wordpress.org/projects/wp-plugins/easy-local-site)

### Заинтересованы в разработке?

[Посмотрите код](https://plugins.trac.wordpress.org/browser/easy-local-site/), проверьте
[SVN репозиторий](https://plugins.svn.wordpress.org/easy-local-site/), или подпишитесь
на [журнал разработки](https://plugins.trac.wordpress.org/log/easy-local-site/) 
по [RSS](https://plugins.trac.wordpress.org/log/easy-local-site/?limit=100&mode=stop_on_copy&format=rss).

## Журнал изменений

#### 0.3

 * Use WP_LOCAL_EMAIL constant for email address (for easier use by teams in a version-
   controlled environment)
 * Prepare for localisation.
 * Add PHPDoc comments

#### 0.2

 * Add email overriding

#### 0.1

 * Initial release

## Мета

 *  Версия **0.3**
 *  Обновление: **6 лет назад**
 *  Активных установок: **10+**
 *  Версия WordPress ** 3.1 или выше **
 *  Совместим вплоть до: **5.5.18**
 *  Язык
 * [English (US)](https://wordpress.org/plugins/easy-local-site/)
 * Метки:
 * [developer](https://ru.wordpress.org/plugins/tags/developer/)[development](https://ru.wordpress.org/plugins/tags/development/)
   [local](https://ru.wordpress.org/plugins/tags/local/)
 *  [Дополнительно](https://ru.wordpress.org/plugins/easy-local-site/advanced/)

## Оценки

 5 из 5 звёзд.

 *  [  1 5-звездный отзыв     ](https://wordpress.org/support/plugin/easy-local-site/reviews/?filter=5)
 *  [  0 4-звездный отзыв     ](https://wordpress.org/support/plugin/easy-local-site/reviews/?filter=4)
 *  [  0 3-звездный отзыв     ](https://wordpress.org/support/plugin/easy-local-site/reviews/?filter=3)
 *  [  0 2-звездный отзыв     ](https://wordpress.org/support/plugin/easy-local-site/reviews/?filter=2)
 *  [  0 1-звездный отзыв     ](https://wordpress.org/support/plugin/easy-local-site/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/easy-local-site/reviews/#new-post)

[Посмотреть всеотзывы](https://wordpress.org/support/plugin/easy-local-site/reviews/)

## Участники

 *   [ Simon Blackbourn ](https://profiles.wordpress.org/lumpysimon/)

## Поддержка

Есть что сказать? Нужна помощь?

 [Перейти в форум поддержки](https://wordpress.org/support/plugin/easy-local-site/)