{"id":45699,"date":"2022-07-03T06:14:28","date_gmt":"2022-07-03T06:14:28","guid":{"rendered":"https:\/\/code.dplugins.com\/?p=45699"},"modified":"2022-07-03T06:14:30","modified_gmt":"2022-07-03T06:14:30","slug":"hide-errors-using-wp-config-file","status":"publish","type":"post","link":"https:\/\/code.dplugins.com\/hide-errors-using-wp-config-file\/","title":{"rendered":"Hide Errors using wp-config file"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"260\" src=\"https:\/\/code.dplugins.com\/wp-content\/uploads\/2022\/07\/CleanShot-2022-07-03-at-16.10.16-1-1024x260.jpg\" alt=\"\" class=\"wp-image-45701\" srcset=\"https:\/\/code.dplugins.com\/wp-content\/uploads\/2022\/07\/CleanShot-2022-07-03-at-16.10.16-1-1024x260.jpg 1024w, https:\/\/code.dplugins.com\/wp-content\/uploads\/2022\/07\/CleanShot-2022-07-03-at-16.10.16-1-300x76.jpg 300w, https:\/\/code.dplugins.com\/wp-content\/uploads\/2022\/07\/CleanShot-2022-07-03-at-16.10.16-1-768x195.jpg 768w, https:\/\/code.dplugins.com\/wp-content\/uploads\/2022\/07\/CleanShot-2022-07-03-at-16.10.16-1-1536x391.jpg 1536w, https:\/\/code.dplugins.com\/wp-content\/uploads\/2022\/07\/CleanShot-2022-07-03-at-16.10.16-1.jpg 1883w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Sometimes when you are in a development environment like Laravel Valet on your home computer, you may have errors show up. you can use the following code to hide them<br><br>Edit <strong>wp-config.php<\/strong> file and add the following anywhere<\/p>\n\n\n\nini_set(&#8216;display_errors&#8217;,&#8217;Off&#8217;);\nini_set(&#8216;error_reporting&#8217;, E_ALL );\ndefine(&#8216;WP_DEBUG&#8217;, false);\ndefine(&#8216;WP_DEBUG_DISPLAY&#8217;, false);\n","protected":false},"excerpt":{"rendered":"<p>Sometimes when you are in a development environment like Laravel Valet on your home computer, you may have errors show up. you can use the following code to hide them Edit wp-config.php file and add the following anywhere ini_set(&#8216;display_errors&#8217;,&#8217;Off&#8217;); ini_set(&#8216;error_reporting&#8217;, E_ALL ); define(&#8216;WP_DEBUG&#8217;, false); define(&#8216;WP_DEBUG_DISPLAY&#8217;, false);<\/p>\n","protected":false},"author":23,"featured_media":45700,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Hide Errors using wp-config file - Code DPlugins","description":"Sometimes when you are in a development environment like Laravel Valet on your home computer, you may have errors show up. you can use the following code to hid"},"footnotes":""},"categories":[3],"tags":[6],"class_list":["post-45699","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-wp-admin"],"_links":{"self":[{"href":"https:\/\/code.dplugins.com\/wp-json\/wp\/v2\/posts\/45699","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/code.dplugins.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/code.dplugins.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/code.dplugins.com\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/code.dplugins.com\/wp-json\/wp\/v2\/comments?post=45699"}],"version-history":[{"count":1,"href":"https:\/\/code.dplugins.com\/wp-json\/wp\/v2\/posts\/45699\/revisions"}],"predecessor-version":[{"id":45702,"href":"https:\/\/code.dplugins.com\/wp-json\/wp\/v2\/posts\/45699\/revisions\/45702"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/code.dplugins.com\/wp-json\/wp\/v2\/media\/45700"}],"wp:attachment":[{"href":"https:\/\/code.dplugins.com\/wp-json\/wp\/v2\/media?parent=45699"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/code.dplugins.com\/wp-json\/wp\/v2\/categories?post=45699"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/code.dplugins.com\/wp-json\/wp\/v2\/tags?post=45699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}