The Environment Indicator in the Admin Bar

    for Managed WordPress & Managed WooCommerce Hosting

    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.

    Was this article helpful?

    Send feedback

    Can’t find what you’re looking for?

    Our award-winning customer care team is here for you.

    Contact Support