{"id":3543,"date":"2025-02-10T09:07:30","date_gmt":"2025-02-10T09:07:30","guid":{"rendered":"https:\/\/thumbtube.com\/blog\/?p=3543"},"modified":"2025-02-18T03:35:04","modified_gmt":"2025-02-18T03:35:04","slug":"how-to-hide-deprecated-notices-in-wordpress","status":"publish","type":"post","link":"https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/","title":{"rendered":"How to Hide Deprecated Notices in WordPress"},"content":{"rendered":"<p>Deprecated notices in WordPress can be annoying. They clutter your screen and make everything look messy. But don\u2019t worry! There are simple ways to hide them without breaking anything.<\/p>\n<h2>What Are Deprecated Notices?<\/h2>\n<p>WordPress keeps evolving. New functions replace old ones. When a function is outdated, WordPress warns you with a deprecated notice. These warnings help developers update their code.<\/p>\n<p>For example, if a plugin or theme uses an old function, WordPress will display a notice like this:<\/p>\n<pre>Deprecated: Function xyz() is deprecated since version 6.0! Use abc() instead.<\/pre>\n<p>If you&#8217;re not a developer, you don\u2019t need to see these messages. So, let\u2019s hide them!<\/p>\n<h2>Method 1: Edit wp-config.php<\/h2>\n<p>The easiest way to hide deprecated notices is by editing your <i>wp-config.php<\/i> file.<\/p>\n<ol>\n<li>Open your website files using <b>FTP<\/b> or File Manager in <b>cPanel<\/b>.<\/li>\n<li>Find the <i>wp-config.php<\/i> file in the root directory.<\/li>\n<li>Edit the file and look for this line:<\/li>\n<\/ol>\n<pre>define('WP_DEBUG', true);<\/pre>\n<p>Change it to:<\/p>\n<pre>define('WP_DEBUG', false);<\/pre>\n<p>This turns off all debugging messages, including deprecated notices.<\/p>\n<img loading=\"lazy\" decoding=\"async\" width=\"1080\" height=\"727\" src=\"https:\/\/thumbtube.com\/blog\/wp-content\/uploads\/2025\/10\/icon-file-permissions-ftp-access-wordpress-media-1.jpg\" class=\"attachment-full size-full\" alt=\"\" srcset=\"https:\/\/thumbtube.com\/blog\/wp-content\/uploads\/2025\/10\/icon-file-permissions-ftp-access-wordpress-media-1.jpg 1080w, https:\/\/thumbtube.com\/blog\/wp-content\/uploads\/2025\/10\/icon-file-permissions-ftp-access-wordpress-media-1-300x202.jpg 300w, https:\/\/thumbtube.com\/blog\/wp-content\/uploads\/2025\/10\/icon-file-permissions-ftp-access-wordpress-media-1-1024x689.jpg 1024w, https:\/\/thumbtube.com\/blog\/wp-content\/uploads\/2025\/10\/icon-file-permissions-ftp-access-wordpress-media-1-768x517.jpg 768w\" sizes=\"(max-width: 1080px) 100vw, 1080px\" \/>\n<h2>Method 2: Hide Only Deprecated Notices<\/h2>\n<p>Maybe you want to keep other error messages but hide only deprecated notices. You can do this by adding these lines to <i>wp-config.php<\/i> instead:<\/p>\n<pre>define('WP_DEBUG', true);\r\ndefine('WP_DEBUG_DISPLAY', false);\r\ndefine('WP_DEBUG_LOG', true);\r\nerror_reporting(E_ALL &amp; ~E_DEPRECATED);\r\n<\/pre>\n<p>This keeps debugging on but hides deprecated warnings from showing on your website.<\/p>\n<h2>Method 3: Use a Plugin<\/h2>\n<p>If editing files sounds scary, don\u2019t worry! There\u2019s a plugin for that.<\/p>\n<p>Follow these steps:<\/p>\n<ol>\n<li>Go to your WordPress dashboard.<\/li>\n<li>Click on <b>Plugins \u00bb Add New<\/b>.<\/li>\n<li>Search for <i>WP Debug Toggle<\/i> or a similar plugin.<\/li>\n<li>Install and activate it.<\/li>\n<li>Configure the settings to hide deprecated notices.<\/li>\n<\/ol>\n<p>Easy, right?<\/p>\n<h2>Method 4: Update Your Plugins and Theme<\/h2>\n<p>Deprecated notices usually appear because of outdated plugins or themes. A simple fix is to keep everything updated.<\/p>\n<p>Here\u2019s what to do:<\/p>\n<ul>\n<li>Go to <b>Dashboard \u00bb Updates<\/b>.<\/li>\n<li>Check if any updates are available.<\/li>\n<li>Update your plugins and theme.<\/li>\n<li>Refresh your website and see if the notices disappear.<\/li>\n<\/ul>\n<img loading=\"lazy\" decoding=\"async\" width=\"1080\" height=\"720\" src=\"https:\/\/thumbtube.com\/blog\/wp-content\/uploads\/2025\/11\/a-computer-monitor-sitting-on-top-of-a-desk-plugin-settings-wordpress-dashboard-site-optimization.jpg\" class=\"attachment-full size-full\" alt=\"\" srcset=\"https:\/\/thumbtube.com\/blog\/wp-content\/uploads\/2025\/11\/a-computer-monitor-sitting-on-top-of-a-desk-plugin-settings-wordpress-dashboard-site-optimization.jpg 1080w, https:\/\/thumbtube.com\/blog\/wp-content\/uploads\/2025\/11\/a-computer-monitor-sitting-on-top-of-a-desk-plugin-settings-wordpress-dashboard-site-optimization-300x200.jpg 300w, https:\/\/thumbtube.com\/blog\/wp-content\/uploads\/2025\/11\/a-computer-monitor-sitting-on-top-of-a-desk-plugin-settings-wordpress-dashboard-site-optimization-1024x683.jpg 1024w, https:\/\/thumbtube.com\/blog\/wp-content\/uploads\/2025\/11\/a-computer-monitor-sitting-on-top-of-a-desk-plugin-settings-wordpress-dashboard-site-optimization-768x512.jpg 768w\" sizes=\"(max-width: 1080px) 100vw, 1080px\" \/>\n<h2>Method 5: Modify Your Theme\u2019s functions.php File<\/h2>\n<p>If deprecated notices only appear on the front end (your website pages), you can hide them by adding this code to your theme\u2019s <i>functions.php<\/i> file:<\/p>\n<pre>error_reporting(E_ALL &amp; ~E_DEPRECATED);\r\nini_set('display_errors', '0');\r\n<\/pre>\n<p>But be careful! If you switch themes, you\u2019ll have to add this code again.<\/p>\n<h2>Should You Hide Deprecated Notices?<\/h2>\n<p>Hiding deprecated notices is fine if you&#8217;re just managing a website. But if you&#8217;re a developer, it\u2019s better to fix the issues.<\/p>\n<p>Deprecated notices exist for a reason. They remind you to update your code before a future WordPress update breaks your site.<\/p>\n<h2>Final Thoughts<\/h2>\n<p>Deprecated notices can be annoying, but they\u2019re easy to hide. You can:<\/p>\n<ul>\n<li>Edit <i>wp-config.php<\/i><\/li>\n<li>Use a plugin<\/li>\n<li>Update your plugins and theme<\/li>\n<li>Modify <i>functions.php<\/i><\/li>\n<\/ul>\n<p>Choose the method that works best for you. Happy WordPressing!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Deprecated notices in WordPress can be annoying. They clutter your screen and make everything look &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Hide Deprecated Notices in WordPress\" class=\"read-more button\" href=\"https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/#more-3543\" aria-label=\"Read more about How to Hide Deprecated Notices in WordPress\">Read More<\/a><\/p>\n","protected":false},"author":78,"featured_media":3565,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-3543","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guides","infinite-scroll-item","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-25","no-featured-image-padding"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Hide Deprecated Notices in WordPress - ThumbTube<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Hide Deprecated Notices in WordPress - ThumbTube\" \/>\n<meta property=\"og:description\" content=\"Deprecated notices in WordPress can be annoying. They clutter your screen and make everything look ... Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"ThumbTube\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-10T09:07:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-18T03:35:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/thumbtube.com\/blog\/wp-content\/uploads\/2025\/02\/wordpress-hide.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"675\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Ethan Martinez\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ethan Martinez\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/\",\"url\":\"https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/\",\"name\":\"How to Hide Deprecated Notices in WordPress - ThumbTube\",\"isPartOf\":{\"@id\":\"https:\/\/thumbtube.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/thumbtube.com\/blog\/wp-content\/uploads\/2025\/02\/wordpress-hide.jpg\",\"datePublished\":\"2025-02-10T09:07:30+00:00\",\"dateModified\":\"2025-02-18T03:35:04+00:00\",\"author\":{\"@id\":\"https:\/\/thumbtube.com\/blog\/#\/schema\/person\/4fe17b14e96eaa537d646cb9ae441583\"},\"breadcrumb\":{\"@id\":\"https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/#primaryimage\",\"url\":\"https:\/\/thumbtube.com\/blog\/wp-content\/uploads\/2025\/02\/wordpress-hide.jpg\",\"contentUrl\":\"https:\/\/thumbtube.com\/blog\/wp-content\/uploads\/2025\/02\/wordpress-hide.jpg\",\"width\":1200,\"height\":675,\"caption\":\"How to Hide Deprecated Notices in WordPress\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/thumbtube.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Hide Deprecated Notices in WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/thumbtube.com\/blog\/#website\",\"url\":\"https:\/\/thumbtube.com\/blog\/\",\"name\":\"ThumbTube\",\"description\":\"Blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/thumbtube.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/thumbtube.com\/blog\/#\/schema\/person\/4fe17b14e96eaa537d646cb9ae441583\",\"name\":\"Ethan Martinez\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/thumbtube.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/993fbfe1588a77db452e8ea37ed7fcba?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/993fbfe1588a77db452e8ea37ed7fcba?s=96&d=mm&r=g\",\"caption\":\"Ethan Martinez\"},\"description\":\"I'm Ethan Martinez, a tech writer focused on cloud computing and SaaS solutions. I provide insights into the latest cloud technologies and services to keep readers informed.\",\"url\":\"https:\/\/thumbtube.com\/blog\/author\/ethan\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Hide Deprecated Notices in WordPress - ThumbTube","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"How to Hide Deprecated Notices in WordPress - ThumbTube","og_description":"Deprecated notices in WordPress can be annoying. They clutter your screen and make everything look ... Read More","og_url":"https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/","og_site_name":"ThumbTube","article_published_time":"2025-02-10T09:07:30+00:00","article_modified_time":"2025-02-18T03:35:04+00:00","og_image":[{"width":1200,"height":675,"url":"https:\/\/thumbtube.com\/blog\/wp-content\/uploads\/2025\/02\/wordpress-hide.jpg","type":"image\/jpeg"}],"author":"Ethan Martinez","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ethan Martinez","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/","url":"https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/","name":"How to Hide Deprecated Notices in WordPress - ThumbTube","isPartOf":{"@id":"https:\/\/thumbtube.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/thumbtube.com\/blog\/wp-content\/uploads\/2025\/02\/wordpress-hide.jpg","datePublished":"2025-02-10T09:07:30+00:00","dateModified":"2025-02-18T03:35:04+00:00","author":{"@id":"https:\/\/thumbtube.com\/blog\/#\/schema\/person\/4fe17b14e96eaa537d646cb9ae441583"},"breadcrumb":{"@id":"https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/#primaryimage","url":"https:\/\/thumbtube.com\/blog\/wp-content\/uploads\/2025\/02\/wordpress-hide.jpg","contentUrl":"https:\/\/thumbtube.com\/blog\/wp-content\/uploads\/2025\/02\/wordpress-hide.jpg","width":1200,"height":675,"caption":"How to Hide Deprecated Notices in WordPress"},{"@type":"BreadcrumbList","@id":"https:\/\/thumbtube.com\/blog\/how-to-hide-deprecated-notices-in-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/thumbtube.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Hide Deprecated Notices in WordPress"}]},{"@type":"WebSite","@id":"https:\/\/thumbtube.com\/blog\/#website","url":"https:\/\/thumbtube.com\/blog\/","name":"ThumbTube","description":"Blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/thumbtube.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/thumbtube.com\/blog\/#\/schema\/person\/4fe17b14e96eaa537d646cb9ae441583","name":"Ethan Martinez","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/thumbtube.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/993fbfe1588a77db452e8ea37ed7fcba?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/993fbfe1588a77db452e8ea37ed7fcba?s=96&d=mm&r=g","caption":"Ethan Martinez"},"description":"I'm Ethan Martinez, a tech writer focused on cloud computing and SaaS solutions. I provide insights into the latest cloud technologies and services to keep readers informed.","url":"https:\/\/thumbtube.com\/blog\/author\/ethan\/"}]}},"_links":{"self":[{"href":"https:\/\/thumbtube.com\/blog\/wp-json\/wp\/v2\/posts\/3543"}],"collection":[{"href":"https:\/\/thumbtube.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thumbtube.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thumbtube.com\/blog\/wp-json\/wp\/v2\/users\/78"}],"replies":[{"embeddable":true,"href":"https:\/\/thumbtube.com\/blog\/wp-json\/wp\/v2\/comments?post=3543"}],"version-history":[{"count":2,"href":"https:\/\/thumbtube.com\/blog\/wp-json\/wp\/v2\/posts\/3543\/revisions"}],"predecessor-version":[{"id":3566,"href":"https:\/\/thumbtube.com\/blog\/wp-json\/wp\/v2\/posts\/3543\/revisions\/3566"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thumbtube.com\/blog\/wp-json\/wp\/v2\/media\/3565"}],"wp:attachment":[{"href":"https:\/\/thumbtube.com\/blog\/wp-json\/wp\/v2\/media?parent=3543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thumbtube.com\/blog\/wp-json\/wp\/v2\/categories?post=3543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thumbtube.com\/blog\/wp-json\/wp\/v2\/tags?post=3543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}