{"id":181703,"date":"2023-12-07T17:03:37","date_gmt":"2023-12-07T17:03:37","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/show-environment-in-editor\/"},"modified":"2024-07-17T13:05:47","modified_gmt":"2024-07-17T13:05:47","slug":"show-environment-in-editor","status":"publish","type":"plugin","link":"https:\/\/pt.wordpress.org\/plugins\/show-environment-in-editor\/","author":15723573,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.9","stable_tag":"1.0.9","tested":"6.6.7","requires":"5.5","requires_php":"7.2","requires_plugins":null,"header_name":"Show Environment In Editor","header_author":"Johannes Siipola","header_description":"Show the current server environment in the Gutenberg editor screen","assets_banners_color":"","last_updated":"2024-07-17 13:05:47","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/github.com\/sponsors\/joppuyo","header_plugin_uri":"https:\/\/github.com\/joppuyo\/show-environment-in-editor","header_author_uri":"https:\/\/siipo.la","rating":0,"author_block_rating":0,"active_installs":0,"downloads":2150,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.3":{"tag":"1.0.3","author":"joppuyo","date":"2023-12-07 17:03:18"},"1.0.5":{"tag":"1.0.5","author":"joppuyo","date":"2023-12-07 17:13:58"},"1.0.6":{"tag":"1.0.6","author":"joppuyo","date":"2023-12-07 17:21:47"},"1.0.7":{"tag":"1.0.7","author":"joppuyo","date":"2023-12-12 13:08:04"},"1.0.8":{"tag":"1.0.8","author":"joppuyo","date":"2024-04-04 11:32:51"},"1.0.9":{"tag":"1.0.9","author":"joppuyo","date":"2024-07-17 13:05:47"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3006927,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3006927,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.3","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":3008771,"resolution":"1","location":"assets","locale":"","width":609,"height":342},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3008771,"resolution":"2","location":"assets","locale":"","width":609,"height":342},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3008771,"resolution":"3","location":"assets","locale":"","width":609,"height":342},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3008771,"resolution":"4","location":"assets","locale":"","width":609,"height":342}},"screenshots":{"1":"Production environment","2":"Staging environment","3":"Local environment","4":"Development environment"}},"plugin_section":[],"plugin_tags":[],"plugin_category":[],"plugin_contributors":[159091],"plugin_business_model":[],"class_list":["post-181703","plugin","type-plugin","status-publish","hentry","plugin_contributors-joppuyo","plugin_committers-joppuyo"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/show-environment-in-editor\/assets\/icon-128x128.png?rev=3006927","icon_2x":"https:\/\/ps.w.org\/show-environment-in-editor\/assets\/icon-256x256.png?rev=3006927","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/show-environment-in-editor\/assets\/screenshot-1.png?rev=3008771","caption":"Production environment"},{"src":"https:\/\/ps.w.org\/show-environment-in-editor\/assets\/screenshot-2.png?rev=3008771","caption":"Staging environment"},{"src":"https:\/\/ps.w.org\/show-environment-in-editor\/assets\/screenshot-3.png?rev=3008771","caption":"Local environment"},{"src":"https:\/\/ps.w.org\/show-environment-in-editor\/assets\/screenshot-4.png?rev=3008771","caption":"Development environment"}],"raw_content":"<!--section=description-->\n<p>WordPress 5.5 <a href=\"https:\/\/make.wordpress.org\/core\/2020\/07\/24\/new-wp_get_environment_type-function-in-wordpress-5-5\/\">introduced<\/a> the <code>WP_ENVIRONMENT_TYPE<\/code> constant, which allows you to define the current environment where WordPress is running, either <strong>production<\/strong>, <strong>staging<\/strong>, <strong>local<\/strong>, or <strong>development<\/strong>. You can use the <a href=\"https:\/\/wordpress.org\/plugins\/display-environment-type\/\">Display Environment Type<\/a> plugin to show this information in the admin bar.<\/p>\n\n<p>However, in new WordPress versions, the admin bar is hidden in the post editor and site editor. This plugin adds a new icon in the block editor toolbar to display the environment type. You can think of this as a complimentary plugin to <a href=\"https:\/\/wordpress.org\/plugins\/display-environment-type\/\">Display Environment Type<\/a> because it's highly recommended that you use both plugins at the same time.<\/p>\n\n<h3>Support the plugin<\/h3>\n\n<p>Maintaining a WordPress plugin is a lot of work. If you like the plugin, please consider rating it on <a href=\"https:\/\/wordpress.org\/support\/plugin\/show-environment-in-editor\/reviews\/#new-post\">WordPress.org<\/a>. You can also support me on <a href=\"https:\/\/github.com\/sponsors\/joppuyo\">GitHub sponsors<\/a>. Thank you!<\/p>\n\n<p>If you are interested, you can also check out my other WordPress plugins:<\/p>\n\n<ul>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/disable-media-pages\/\">Disable Media Pages<\/a><\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/customizer-disabler\/\">Disable Customizer<\/a><\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/disable-drop-cap\/\">Disable Drop Cap<\/a><\/li>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/acf-image-aspect-ratio-crop\/\">ACF Image Aspect Ratio Crop<\/a><\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Install the plugin from your WordPress dashboard<\/li>\n<li>Activate the <strong>Show Environment In Editor<\/strong> via the plugins admin page<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='my%20environment%20shows%20%22production%22.%20how%20can%20i%20change%20it%3F'><h3>My environment shows \"production\". How can I change it?<\/h3><\/dt>\n<dd><p>You can set the environment type in <code>wp-config.php<\/code>. Here are the values you can use.\n\u2009<\/p>\n\n<pre><code>\/\/ Production\ndefine('WP_ENVIRONMENT_TYPE', 'production');\n\n\/\/ Staging\ndefine('WP_ENVIRONMENT_TYPE', 'staging');\n\n\/\/ Local\ndefine('WP_ENVIRONMENT_TYPE', 'local');\n\n\/\/ Development\ndefine('WP_ENVIRONMENT_TYPE', 'development');\n<\/code><\/pre>\n\n<p>\u2009<\/p><\/dd>\n<dt id='can%20i%20find%20this%20plugin%20on%20github%3F'><h3>Can I find this plugin on GitHub?<\/h3><\/dt>\n<dd><p>Yes, check out the <a href=\"https:\/\/github.com\/joppuyo\/show-environment-in-editor\">GitHub repository.<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h3>1.0.9 (2024-07-17)<\/h3>\n\n<ul>\n<li>Fix: Update tested up to version 6.6<\/li>\n<\/ul>\n\n<h3>1.0.8 (2024-04-04)<\/h3>\n\n<ul>\n<li>Fix: Update tested up to version 6.5<\/li>\n<\/ul>\n\n<h3>1.0.7<\/h3>\n\n<ul>\n<li>Update readme<\/li>\n<\/ul>\n\n<h3>1.0.6<\/h3>\n\n<ul>\n<li>Remove some more unnecessary files from the release zip<\/li>\n<\/ul>\n\n<h3>1.0.5<\/h3>\n\n<ul>\n<li>Remove unnecessary files<\/li>\n<\/ul>\n\n<h3>1.0.4<\/h3>\n\n<ul>\n<li>Fix deployment<\/li>\n<\/ul>\n\n<h3>1.0.3<\/h3>\n\n<ul>\n<li>Release in the plugin directory<\/li>\n<\/ul>\n\n<h3>1.0.2<\/h3>\n\n<ul>\n<li>Prevent direct access<\/li>\n<\/ul>\n\n<h3>1.0.1<\/h3>\n\n<ul>\n<li>Update text domain<\/li>\n<li>Update tested up to version 6.4<\/li>\n<\/ul>\n\n<h3>1.0.0<\/h3>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Show the current server environment in the Gutenberg editor screen.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/181703","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=181703"}],"author":[{"embeddable":true,"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/joppuyo"}],"wp:attachment":[{"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=181703"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=181703"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=181703"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=181703"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=181703"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pt.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=181703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}