Title: WP Dev Flag
Author: Poodle Plugins
Published: <strong>10 d'abril de 2019</strong>
Last modified: 7 d'abril de 2026

---

Cerca extensions

![](https://ps.w.org/wp-dev-flag/assets/banner-772x250.png?rev=3109637)

![](https://ps.w.org/wp-dev-flag/assets/icon-256x256.png?rev=3109638)

# WP Dev Flag

 Per [Poodle Plugins](https://profiles.wordpress.org/poodleplugins/)

[Baixa](https://downloads.wordpress.org/plugin/wp-dev-flag.2.0.1.zip)

 * [Detalls](https://ca.wordpress.org/plugins/wp-dev-flag/#description)
 * [Ressenyes](https://ca.wordpress.org/plugins/wp-dev-flag/#reviews)
 *  [Instal·lació](https://ca.wordpress.org/plugins/wp-dev-flag/#installation)
 * [Desenvolupament](https://ca.wordpress.org/plugins/wp-dev-flag/#developers)

 [Suport](https://wordpress.org/support/plugin/wp-dev-flag/)

## Descripció

This plugin makes it easy to distinguish between your local development site, and
your live site.
 I created this because I often use a local duplicate of my live
site, for development, with the same DB, and the same URL.

I needed a quick & easy way of distinguishing between my live and development sites
at a glance. This plugin acheives that in the simplest way possible.

There are settings for colour, positioning and the text displayed on the badge. 
It is also possible to add a link onto the badge.

## Captures

[⌊This is what the default badge looks like.⌉⌊This is what the default badge looks
like.⌉[

This is what the default badge looks like.

[⌊This is the Trigger Options tab.⌉⌊This is the Trigger Options tab.⌉[

This is the Trigger Options tab.

[⌊This is the Display Options tab.⌉⌊This is the Display Options tab.⌉[

This is the Display Options tab.

[⌊This is the Link Options tab.⌉⌊This is the Link Options tab.⌉[

This is the Link Options tab.

## Instal·lació

#### From your WordPress dashboard

 1. Visit ‘Plugins > Add New’
 2. Search for ‘WP Dev Flag’
 3. Activate ‘WP Dev Flag’ from your Plugins page.
 4. Visit ‘WP Dev Flag Options’ in the ‘Plugins’ submenu to access the settings.

#### From WordPress.org

 1. Download ‘WP Dev Flag’.
 2. Upload the ‘wp-dev-flag’ directory to your ‘/wp-content/plugins/’ directory, using
    your favorite method (ftp, sftp, scp, etc…)
 3. Activate ‘WP Dev Flag’ from your Plugins page.
 4. Visit ‘WP Dev Flag Options’ in the ‘Plugins’ submenu to access the settings.

## PMF

### Can I create my own CSS for the badge?

Currently, you can customise the colour, text and position of the badge. The ability
to add a custom class is coming in the next release.

Feel free to just style `.wp-dev-flag` yourself though.

I will also explore additonal options such as custom fonts & href functionality.

### Will the badge display on my live site if I duplicate the entire database as is?

No, it detects the current server environment and if it doesn’t match the environment
that was set originally, the plugin will not display the badge. You can simply click
update to set the new environment if required.

### Can I add a link to the badge?

Yes, as of Version 1.3.0 you can add your own link and toggle it to open in a new
tab.

## Ressenyes

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

### 󠀁[Alternative](https://wordpress.org/support/topic/alternative-17/)󠁿

 [evangun](https://profiles.wordpress.org/evangun/) 21 de novembre de 2020

I downloaded the plugin but did not install it when I saw the number of files. It
might be great, I won’t say anything on it, I just wanted to share a few lines of
code that did the job for me instead: if (defined('WP_DEBUG') and true === WP_DEBUG){//
add a green dot at the bottom left of the screen // when WP_DEBUG in wp-config is
true function devTag () { echo '<div style="background:green;border-radius:10px;
bottom:20px;height:10px;left:20px;position:fixed;width:10px;z-index: 9999;"></div
>'; } add_action('wp_body_open', 'devTag'); }

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

### 󠀁[Useful plugin](https://wordpress.org/support/topic/useful-plugin-528/)󠁿

 [kaybeast](https://profiles.wordpress.org/kaybeast/) 6 de maig de 2019

Just what I was looking for. Adding this to my favorites.

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

### 󠀁[Handy plugin](https://wordpress.org/support/topic/handy-plugin-83/)󠁿

 [sgtberbatov](https://profiles.wordpress.org/sgtberbatov/) 12 de abril de 2019

Installed this on my website when I was developing it, and it’s been a very handy
yet simple tool for me. It’s now part of my toolkit for when I am developing WordPress
websites.

 [ Llegiu totes les 3 ressenyes ](https://wordpress.org/support/plugin/wp-dev-flag/reviews/)

## Col·laboradors i desenvolupadors

«WP Dev Flag» és programari de codi obert. La següent gent ha col·laborat en aquesta
extensió.

Col·laboradors

 *   [ Poodle Plugins ](https://profiles.wordpress.org/poodleplugins/)

[Traduïu «WP Dev Flag» a la vostra llengua.](https://translate.wordpress.org/projects/wp-plugins/wp-dev-flag)

### Interessats en el desenvolupament?

[Navegueu pel codi](https://plugins.trac.wordpress.org/browser/wp-dev-flag/), baixeu-
vos el [repositori SVN](https://plugins.svn.wordpress.org/wp-dev-flag/), o subscriviu-
vos al [registre de desenvolupament](https://plugins.trac.wordpress.org/log/wp-dev-flag/)
per [fisl de subscripció RSS](https://plugins.trac.wordpress.org/log/wp-dev-flag/?limit=100&mode=stop_on_copy&format=rss).

## Registre de canvis

#### v2.0.1

 * Bug fixes & customiser error fix.

#### v2.0.0

 * Full codebase rewrite. Remove code fluff, restructure code.

#### v1.3.1 – 23 May 21

 * Bug fix: Add default option values to fix possible PHP notices.

#### v1.3.0 – 02 Jan 21

 * Enhancement: Added a link options settings tab. This allows you to add a link
   and toggle it to open in a new tab.

#### v1.2.0 – 25 Jun 19

 * Enhancement: Added a setting to toggle the badge on the front end. You now have
   control over the display of the badge on both front end and dashboard, independently.

#### v1.1.0 – 02 Jun 19

 * Enhancement: Added the ability to show a badge in the admin dashboard. This will
   appear in the admin bar, to avoid obscuring any menu options.

#### v1.0.0

 * First Version.

## Meta

 *  Versió **2.0.1**
 *  Darrera actualització **fa 2 mesos**
 *  Instal·lacions actives **10+**
 *  Versió del WordPress ** 3.0.1 o posterior **
 *  Provada fins a **6.9.4**
 *  Versió del PHP ** 5.6 o posterior **
 *  Idioma
 * [English (US)](https://wordpress.org/plugins/wp-dev-flag/)
 * Etiquetes
 * [banner](https://ca.wordpress.org/plugins/tags/banner/)[development](https://ca.wordpress.org/plugins/tags/development/)
   [flag](https://ca.wordpress.org/plugins/tags/flag/)[localhost](https://ca.wordpress.org/plugins/tags/localhost/)
   [production](https://ca.wordpress.org/plugins/tags/production/)
 *  [Vista avançada](https://ca.wordpress.org/plugins/wp-dev-flag/advanced/)

## Valoracions

 5 sobre 5 estrelles.

 *  [  3 valoracions de 5 estrelles     ](https://wordpress.org/support/plugin/wp-dev-flag/reviews/?filter=5)
 *  [  0 valoracions de 4 estrelles     ](https://wordpress.org/support/plugin/wp-dev-flag/reviews/?filter=4)
 *  [  0 valoracions de 3 estrelles     ](https://wordpress.org/support/plugin/wp-dev-flag/reviews/?filter=3)
 *  [  0 valoracions de 2 estrelles     ](https://wordpress.org/support/plugin/wp-dev-flag/reviews/?filter=2)
 *  [  0 valoracions de 1 estrelles     ](https://wordpress.org/support/plugin/wp-dev-flag/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wp-dev-flag/reviews/#new-post)

[Visualitzeu totes les ressenyes](https://wordpress.org/support/plugin/wp-dev-flag/reviews/)

## Col·laboradors

 *   [ Poodle Plugins ](https://profiles.wordpress.org/poodleplugins/)

## Suport

Teniu quelcom a dir? Necessiteu ajuda?

 [Visualitza els fòrums de suport](https://wordpress.org/support/plugin/wp-dev-flag/)