Title: Local Development
Author: Andy Fragen
Published: <strong>14 sausio, 2016</strong>
Last modified: 8 spalio, 2025

---

Ieškoti įskiepiuose

![](https://ps.w.org/local-development/assets/banner-772x250.png?rev=2560201)

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

# Local Development

 Autorius [Andy Fragen](https://profiles.wordpress.org/afragen/)

[Parsisiųsti](https://downloads.wordpress.org/plugin/local-development.2.11.0.zip)

 * [Informacija](https://lt.wordpress.org/plugins/local-development/#description)
 * [Atsiliepimai](https://lt.wordpress.org/plugins/local-development/#reviews)
 * [Kūrimas](https://lt.wordpress.org/plugins/local-development/#developers)

 [Pagalba](https://wordpress.org/support/plugin/local-development/)

## Aprašymas

Places development notice for plugins or themes that are in local development. Notices
are placed on the plugins page and the themes page. Prevents updating of selected
plugins and themes.

 * Automatically adds plugins and themes under version control.
 * Automatically allows for using a local file server.
 * Allows for bypassing the WordPress 5.2 WSOD Shutdown Handler.
 * Add a warning color to admin bar when running under localhost. Default is on.
 * Add a git host icon to the plugins page. Default is off. No option if GitHub 
   Updater is running.
 * Allows setting of `WP_ENVIRONMENT_TYPE` in `wp-config.php`.

Pull Requests are welcome against the [develop branch on GitHub](https://github.com/afragen/local-development).

Requires PHP 7.4 or greater.

## Ekrano nuotraukos

 * [[
 * Plugin Settings
 * [[
 * Plugins Page
 * [[
 * Themes Page
 * [[
 * Multisite Themes Page

## Atsiliepimai

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

### 󠀁[Just what I was looking for!](https://wordpress.org/support/topic/just-what-i-was-looking-for-473/)󠁿

 [claygriffiths](https://profiles.wordpress.org/claygriffiths/) 28 sausio, 2021 
1 reply

I expect no less from Andy 😃

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

### 󠀁[Great for displaying „localhost” status during MAMP development](https://wordpress.org/support/topic/great-for-displaying-localhost-status-during-mamp-development/)󠁿

 [Larry Daniele](https://profiles.wordpress.org/larrydaniele/) 21 rugsėjo, 2020

I’m using MAMP to develop a plugin locally. When MAMP is properly set up and running,
it’s easy not realize if the website in the browser is running locally or remotely.
Installing the „Local Development” plugin makes it easy to see via the green highlight
in the admin bar along with the word „local” in it. Simple, visual and effective.
Thanks!

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

### 󠀁[A Life Saver…](https://wordpress.org/support/topic/a-life-saver-58/)󠁿

 [wpadvocate](https://profiles.wordpress.org/wpadvocate/) 21 liepos, 2020

This can prevent a potential disaster if you work locally. In my past I have made
changes to live site by mistake. NO MORE!!! Thanks to this plugin.

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

### 󠀁[Works well, easy to use, customizable](https://wordpress.org/support/topic/works-well-easy-to-use-customizable/)󠁿

 [Clifford Paulick](https://profiles.wordpress.org/cliffpaulick/) 24 birželio, 2020
1 reply

Plus, Andy is great!

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

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-8637/)󠁿

 [Kevin Pryce](https://profiles.wordpress.org/kpry44/) 3 rugsėjo, 2016 1 reply

Did everything it said it would. Will be a good tool.

 [ Perskaityti visus atsiliepimus (5) ](https://wordpress.org/support/plugin/local-development/reviews/)

## Programuotojai ir komandos nariai

“Local Development” yra atviro kodo programa. Prie jos sukūrimo prisidėję žmonės
surašyti toliau.

Autoriai

 *   [ Andy Fragen ](https://profiles.wordpress.org/afragen/)
 *   [ Raruto ](https://profiles.wordpress.org/raruto/)

Įskiepis “Local Development” išverstas į 3 kalbas. Dėkojame [vertėjams](https://translate.wordpress.org/projects/wp-plugins/local-development/contributors)
už jų darbą.

[Išverskite “Local Development” į savo kalbą.](https://translate.wordpress.org/projects/wp-plugins/local-development)

### Domina programavimas?

[Peržiūrėkite kodą](https://plugins.trac.wordpress.org/browser/local-development/),
naršykite [SVN repozitorijoje](https://plugins.svn.wordpress.org/local-development/),
arba užsiprenumeruokite [kodo pakeitimų žurnalą](https://plugins.trac.wordpress.org/log/local-development/)
per [RSS](https://plugins.trac.wordpress.org/log/local-development/?limit=100&mode=stop_on_copy&format=rss).

## Pakeitimų istorija

#### 2.11.0 / 2025-09-08

 * update for Git Updater Additions tab/rebrand
 * use `init` hook in startup to avoid local_textdomain error
 * update requirements

#### 2.10.1 / 2024-12-15

 * update for Git Updater rebrand to not duplicate git icons

#### 2.10.0 / 2024-12-11

 * some reorganization to fix `_load_textdomain_just_in_time`
 * set `WP_ENVIRONMENT_TYPE` variable

#### 2.9.2 / 2024-12-05

 * don’t use `init` hook to in startup

#### 2.9.1 / 2024-12-02

 * add GA to generate POT
 * linting
 * more fixing for `_load_textdomain_just_in_time`

#### 2.9.0 / 2024-11-01

 * remove `load_plugin_textdomain()`
 * fix setting to show/hide git host icon
 * composer update

#### 2.8.4 / 2024-07-11

 * composer update
 * update GitHub Actions
 * update tested to
 * linting

#### 2.8.3

 * add nonce check for `update_settings()`, bad Andy

#### 2.8.2 / 2023-03-20

 * PHP 8.1 compatibilty updates

#### 2.8.1 / 2022-05-10

 * only use `esc_attr_e` for translating strings
 * use `sanitize_title_with_dashes()` as `sanitize_file_name()` maybe have attached
   filter that changes output
 * update for Local.app adding `WP_ENVIRONMENT_TYPE` constant in `local-bootstrap.
   php` file

#### 2.8.0 / 2021-07-07

 * update WPConfigTransformer to use alternate anchor if default not present
 * add @10up GitHub Actions for WordPress SVN

#### 2.7.3 / 2021-03-05

 * update docblocks
 * update tested to 5.7

#### 2.7.2 / 2020-11-21

 * remove ‘Edit’ action link
 * fix PHP warning when some settings not yet saved

#### 2.7.1 / 2020-10-05

 * try to correcty display defined `WP_ENVIRONMENT_TYPE` in Settings
 * remove branch switch list from GitHub Updater plugins/themes and add _In Local
   Development_ item

#### 2.7.0 / 2020-099-15

 * set custom admin bar to display environment type
 * remove `WP_ENVIRONMENT_TYPE` on deactivation
 * remove a line of jQuery for removing `update` row class as unnecessary and now
   [conflicting with GHU](https://github.com/afragen/github-updater/pull/898)
 * disable the auto-update link from WP 5.5

#### 2.6.2 / 2020-09-01

 * only set `WP_ENVIRONMENT_TYPE` when changed

#### 2.6.1 / 2020-09-01

 * fix for saving `WP_ENVIRONMENT_TYPE`

#### 2.6.0 / 2020-09-01

 * add setting for `WP_ENVIRONMENT_TYPE` in WP 5.5+
 * refactor plugin startup a bit

#### 2.5.7 / 2020-07-20

 * set disabled checked option if `WP_DISABLE_FATAL_ERROR_HANDLER` is true

#### 2.5.6 / 2020-07-10

 * fix logic for no setting

#### 2.5.5 / 2020-07-09

 * skip mu-plugins and drop-ins
 * filter options to save to remove unchecked and VCS repos
 * add git host icon for Gists
 * defer to GitHub Updater to show git host icons

#### 2.5.4 / 2020-06-01

 * sanitizing, escaping & ignoring

#### 2.5.3 / 2020-03-28

 * move `Settings` action link to front

#### 2.5.2 / 2020-02-03

 * use `is_localhost()` for local git server setting and make automatic

#### 2.5.1 / 2020-01-24

 * run if no settings yet saved

#### 2.5.0 / 2020-01-23

 * update `Requires at least` in plugin file
 * add VCS checkouts automatically, thanks @Raruto
 * add Git Host icons as default setting for plugins and themes
 * add localhost admin bar coloring when on localhost, default is on
 * some now settings only display when running in localhost
 * add repositories that are added from [GitHub Updater Additions](https://github.com/afragen/github-updater-additions)

#### 2.4.1 / 2019-05-09

 * a11y updates for settings tabs

#### 2.4.0 / 2019-01-30

 * remove language pack updates for selected plugins/themes
 * only add WSOD bypass when appropriate

#### 2.3.0 / 2019-01-22

 * add bypass for WordPress 5.2 WSOD Shutdown Handler
 * move loading hooks out of constructors
 * pass saved options to class constructors

#### 2.2.0 / 2018-11-25

 * use composer for dependencies and autoloader

#### 2.1.0 / 2018-10-01

 * updated error handling in Singleton factory
 * added `class Bootstrap` to allow for easier time with main plugin file

#### 2.0.0

 * refactored to have each group in its own class, much more OOPy 😉
 * use wpcs codesniffer
 * removed checkboxes and delete links for checked plugins/themes

#### 1.6.0 / 2018-05-26

 * added ability to use local file server on LAN during development
 * refactored hiding of update row to use jQuery and remove row, not CSS dislay 
   none
 * update to PSR-2

#### 1.5.0

 * stopped creation of generic global variables

#### 1.4.0 / 2017-04-16

 * redesigned Settings to put checkbox in front of plugin/theme name
 * updated screenshots

#### 1.3.1 / 2017-04-13

 * move Autoloader to new location
 * cleanup

#### 1.3.0 / 2016-11-06

 * fixed PHP notice on settings page
 * correctly load translations
 * added our own PHP version check

#### 1.2.4

 * cast `self::$themes` as array when empty, fixes PHP notice

#### 1.2.3

 * fixed saving on single install when nothing selected

#### 1.2.2

 * fix PHP notices on initial install and no saved settings

#### 1.2.1

 * fix PHP notice

#### 1.2

 * add hiding of update messages for GitHub Updater

#### 1.1

 * specify `admin_head-settings_page_local-development` to add styles

#### 1.0

 * rebrand as **Local Development**

#### 0.2

 * hide update nag for selected repositories to prevent updating

#### 0.1

 * initial release

## Metainformacija

 *  Version **2.11.0**
 *  Atnaujinta **prieš 6 mėnesiai**
 *  Aktyvių instaliacijų **90+**
 *  WordPress versija ** 5.4 ar naujesnė **
 *  Ištestuota iki **6.9.4**
 *  PHP versija ** 7.4 ar naujesnė **
 *  Kalbos
 * [Chinese (Taiwan)](https://tw.wordpress.org/plugins/local-development/), [Dutch](https://nl.wordpress.org/plugins/local-development/),
   [English (US)](https://wordpress.org/plugins/local-development/) ir [Portuguese (Portugal)](https://pt.wordpress.org/plugins/local-development/).
 *  [Išversti į savo kalbą](https://translate.wordpress.org/projects/wp-plugins/local-development)
 * Žymos
 * [development](https://lt.wordpress.org/plugins/tags/development/)[localhost](https://lt.wordpress.org/plugins/tags/localhost/)
   [theme](https://lt.wordpress.org/plugins/tags/theme/)[upgrade](https://lt.wordpress.org/plugins/tags/upgrade/)
 *  [Daugiau](https://lt.wordpress.org/plugins/local-development/advanced/)

## Įvertinimai

 5 out of 5 stars.

 *  [  5 5-star reviews     ](https://wordpress.org/support/plugin/local-development/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/local-development/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/local-development/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/local-development/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/local-development/reviews/?filter=1)

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

[See all reviews](https://wordpress.org/support/plugin/local-development/reviews/)

## Autoriai

 *   [ Andy Fragen ](https://profiles.wordpress.org/afragen/)
 *   [ Raruto ](https://profiles.wordpress.org/raruto/)

## Pagalba

Turite pastabų? Reikia pagalbos?

 [Peržiūrėti pagalbos forumą](https://wordpress.org/support/plugin/local-development/)