Title: Set the Stage
Author: Ivaylo Draganov
Published: <strong>22 Dhjetor, 2021</strong>
Last modified: 16 Gusht, 2023

---

Kërkoni te shtojca

![](https://ps.w.org/set-the-stage/assets/banner-772x250.png?rev=2647750)

Kjo shtojcë **s’është testuar me 3 hedhjet e rëndësishme të fundit në qarkullim 
të WordPress-it**. Mund të mos e mirëmbajnë më, ose mundet të mos mbulohet më dhe
mund të ketë probleme përputhshmërie, kur përdoret me versione më të freskët të 
WordPress-it.

![](https://s.w.org/plugins/geopattern-icon/set-the-stage_dddfe1.svg)

# Set the Stage

 Nga [Ivaylo Draganov](https://profiles.wordpress.org/dragunoff/)

[Shkarkim](https://downloads.wordpress.org/plugin/set-the-stage.1.0.1.zip)

 * [Hollësi](https://sq.wordpress.org/plugins/set-the-stage/#description)
 * [Shqyrtime](https://sq.wordpress.org/plugins/set-the-stage/#reviews)
 *  [Instalim](https://sq.wordpress.org/plugins/set-the-stage/#installation)
 * [Zhvillim](https://sq.wordpress.org/plugins/set-the-stage/#developers)

 [Asistencë](https://wordpress.org/support/plugin/set-the-stage/)

## Përshkrim

Adds a menu to the admin bar to quickly identify different environments for a site(
e.g. production and development) and easily switch to the same URL on other environments.
Multi-site compatible for both sub-domain and sub-directory installations.

### Configuration

The plugin has a convenient settings page but can also be configured programatically
via a filter hook.

#### Setting environments via the WordPress admin interface

Navigate to “Settings > Set the Stage” in the WordPress admin to review and edit
the configuration.

#### Setting environments via a WordPress filter hook

Hook to `drgnff_wp_stage_switcher__environments` and return an array with environments.
Here’s an example filter function:

    ```
    add_filter( 'drgnff_wp_stage_switcher__environments', function ($envs) {
        return [
            [
                'url' => 'https://example.com', // home url
                'title' => 'LIVE', // display name
                'color' => '#ffffff', // hex color (optional)
                'background_color' => '#ff0000', // hex color (optional)
            ],
            [
                'url' => 'https://example.com',
                'title' => 'DEVELOPMENT',
                'color' => '#ffffff',
                'background_color' => '#228b22',
            ],
        ];
    });
    ```

#### Controlling visibility of the switcher

By default the switcher menu is displayed to all logged in users. By hooking to `
drgnff_wp_stage_switcher__should_display_switcher` and returning a boolean you can
control whether the switcher should be displayed.

#### Overriding the default environment

The default environment is used for the current site if it’s not in the list of 
environments. By hooking to `drgnff_wp_stage_switcher__default_environment` you 
can control the title and colors for the default environment.

#### A few notes on configuration

 * Filters have a precedence over manual configuration made in the settings page.
   If filters are used then relevant sections on the settings page are rendered 
   as read-only.
 * For multi-site installations use the URLs of the main site.
 * The plugin initiates its logic on the `plugins_loaded` hook with priority `11`.
   Thus filter hooks that affect the plugin must be added before that.

## Foto ekrani

 * [[
 * The admin bar menu in action
 * [[
 * The settings page
 * [[
 * Adding the current environment to the list

## Instalim

 1. Activate from the plugins menu.
 2. Navigate to the plugin settings page or use a filter to set up your environments.

## Shqyrtime

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

### 󠀁[Excellent little plugin, simple to use](https://wordpress.org/support/topic/excellent-little-plugin-simple-to-use/)󠁿

 [djek](https://profiles.wordpress.org/djek/) 25 Janar, 2023

Simple but very effective plugin. Thanks a lot!

 [ Lexoni 1 shqyrtimin e vetëm ](https://wordpress.org/support/plugin/set-the-stage/reviews/)

## Kontribues & Zhvillues

“Set the Stage” është software me burim të hapur. Në këtë shtojcë kanë dhënë ndihmesë
personat vijues.

Kontribues

 *   [ Ivaylo Draganov ](https://profiles.wordpress.org/dragunoff/)

[Përkthejeni “Set the Stage” në gjuhën tuaj.](https://translate.wordpress.org/projects/wp-plugins/set-the-stage)

### Ju intereson zhvillimi?

[Shfletoni kodin](https://plugins.trac.wordpress.org/browser/set-the-stage/), shkarkoni
[depon SVN](https://plugins.svn.wordpress.org/set-the-stage/), ose pajtohuni përmes
[RSS-je](https://plugins.trac.wordpress.org/log/set-the-stage/?limit=100&mode=stop_on_copy&format=rss)
te [regjistri i zhvillimeve](https://plugins.trac.wordpress.org/log/set-the-stage/).

## Regjistër ndryshimesh

#### 1.0.1

**Fixed**
 – Fix default environment reset button

#### 1.0.0

 * Initial release.

## Të tjera

 *  Version **1.0.1**
 *  Përditësuar së fundi më **3 vjet më parë**
 *  Instalime aktive **10+**
 *  Version WordPress-i ** 4.7 ose më i madh **
 *  E provuar deri me **6.3.8**
 *  Version PHP-je ** 7.4 ose më i madh **
 *  Gjuhë
 * [English (US)](https://wordpress.org/plugins/set-the-stage/)
 * Etiketa
 * [environment](https://sq.wordpress.org/plugins/tags/environment/)[menu](https://sq.wordpress.org/plugins/tags/menu/)
   [stage](https://sq.wordpress.org/plugins/tags/stage/)[switcher](https://sq.wordpress.org/plugins/tags/switcher/)
 *  [Pamje e Thelluar](https://sq.wordpress.org/plugins/set-the-stage/advanced/)

## Vlerësime

 5 nga 5 yje të mundshëm.

 *  [  1 shqyrtim me 5 yje     ](https://wordpress.org/support/plugin/set-the-stage/reviews/?filter=5)
 *  [  0 shqyrtime me 4 yje     ](https://wordpress.org/support/plugin/set-the-stage/reviews/?filter=4)
 *  [  0 shqyrtime me 3 yje     ](https://wordpress.org/support/plugin/set-the-stage/reviews/?filter=3)
 *  [  0 shqyrtime me 2 yje     ](https://wordpress.org/support/plugin/set-the-stage/reviews/?filter=2)
 *  [  0 shqyrtime me 1 yje     ](https://wordpress.org/support/plugin/set-the-stage/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/set-the-stage/reviews/#new-post)

[Shihni krejt shqyrtimet](https://wordpress.org/support/plugin/set-the-stage/reviews/)

## Kontribues

 *   [ Ivaylo Draganov ](https://profiles.wordpress.org/dragunoff/)

## Asistencë

Keni diçka për të thënë? Ju duhet ndihmë?

 [Shihni forum asistence](https://wordpress.org/support/plugin/set-the-stage/)