Nexcess Logo

The Environment Indicator in the Admin Bar

Knowledge Base Home

Notice anything different?

We've enhanced the appearance of our portal and we're working on updating screenshots. Things might look different, but the functionality remains the same.
November 11, 2020

WordPress 5.5 includes a new environment type function.

With more and more site owners using test & development environments the goal of the environment constant is to make it easier to know exactly which site you are working on. 

The environment indicator will show in the admin bar of the site. For example, if you are working on the production site then it will show as such. If you are working on a staging/development site then it will show as being staging.

If you do not want the environment indicator to display on the admin bar of your site you can use a filter to disable from showing.

add_filter( 'nexcess_mapps_enable_environment_indicator', '__return_false' );

You can set the code snippet in a custom site-specific plugin or using a plugin like Code Snippets.

From wp-admin go to;

Snippets > Add New

For 24-hour assistance any day of the year, contact our support team by email or through your Client Portal.

Patrick Rauland
We use cookies to understand how you interact with our site, to personalize and streamline your experience, and to tailor advertising. By continuing to use our site, you accept our use of cookies and accept our Privacy Policy.