{"id":303,"date":"2021-02-14T17:07:40","date_gmt":"2021-02-14T09:07:40","guid":{"rendered":"http:\/\/apps.badjoerichards.com\/apps\/developerhack\/?p=303"},"modified":"2021-02-14T17:09:07","modified_gmt":"2021-02-14T09:09:07","slug":"how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress","status":"publish","type":"post","link":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\/","title":{"rendered":"How to fix the deprecated blacklist_keys&#8221; option key problem in Contact Form 7 in WordPress?"},"content":{"rendered":"<p>Last updated: 20210214<\/p>\n<p>&nbsp;<\/p>\n<p>If you get the error message when sending a message in Contact Form 7 on your WordPress:<\/p>\n<p class=\"p1\"><b>Deprecated<\/b>: get_option was called with an argument that is\u00a0<b>deprecated<\/b> since version 5.5.0! The &#8220;blacklist_keys&#8221; option key has been renamed to &#8220;disallowed_keys&#8221;. in\u00a0<b>\/wp-includes\/functions.php<\/b>\u00a0on line\u00a0<b>5143<\/b><\/p>\n<p>&nbsp;<\/p>\n<p>Then simply do this:<\/p>\n<p>I was able to remove this error by changing the following at contact-form-7\\modules\\disallowed-list.php, line 51:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$mod_keys = trim( get_option( 'blacklist_keys' ) );\r\n\r\n<\/pre>\n<p>to<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$mod_keys = trim( get_option( 'disallowed_keys' ) );\r\n\r\n<\/pre>\n<p>Reference:<\/p>\n<p>https:\/\/github.com\/takayukister\/contact-form-7\/issues\/170<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last updated: 20210214 &nbsp; If you get the error message when sending a message in Contact Form 7 on your WordPress: Deprecated: get_option was called with an argument that is\u00a0deprecated since version 5.5.0! The &#8220;blacklist_keys&#8221; option key has been renamed to &#8220;disallowed_keys&#8221;. in\u00a0\/wp-includes\/functions.php\u00a0on line\u00a05143 &nbsp; Then simply do this: I was able to remove this &hellip; <a href=\"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;How to fix the deprecated blacklist_keys&#8221; option key problem in Contact Form 7 in WordPress?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"footnotes":""},"categories":[13],"tags":[],"class_list":["post-303","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to fix the deprecated blacklist_keys&quot; option key problem in Contact Form 7 in Wordpress? - Developer Hack<\/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:\/\/apps.badjoerichards.com\/apps\/developerhack\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-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 fix the deprecated blacklist_keys&quot; option key problem in Contact Form 7 in Wordpress? - Developer Hack\" \/>\n<meta property=\"og:description\" content=\"Last updated: 20210214 &nbsp; If you get the error message when sending a message in Contact Form 7 on your WordPress: Deprecated: get_option was called with an argument that is\u00a0deprecated since version 5.5.0! The &#8220;blacklist_keys&#8221; option key has been renamed to &#8220;disallowed_keys&#8221;. in\u00a0\/wp-includes\/functions.php\u00a0on line\u00a05143 &nbsp; Then simply do this: I was able to remove this &hellip; Continue reading &quot;How to fix the deprecated blacklist_keys&#8221; option key problem in Contact Form 7 in WordPress?&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"Developer Hack\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-14T09:07:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-14T09:09:07+00:00\" \/>\n<meta name=\"author\" content=\"Bad Joe\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bad Joe\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/apps.badjoerichards.com\\\/apps\\\/developerhack\\\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/apps.badjoerichards.com\\\/apps\\\/developerhack\\\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\\\/\"},\"author\":{\"name\":\"Bad Joe\",\"@id\":\"https:\\\/\\\/apps.badjoerichards.com\\\/apps\\\/developerhack\\\/#\\\/schema\\\/person\\\/01df012e94dd976ac49e50cdbf0e38d6\"},\"headline\":\"How to fix the deprecated blacklist_keys&#8221; option key problem in Contact Form 7 in WordPress?\",\"datePublished\":\"2021-02-14T09:07:40+00:00\",\"dateModified\":\"2021-02-14T09:09:07+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/apps.badjoerichards.com\\\/apps\\\/developerhack\\\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\\\/\"},\"wordCount\":112,\"commentCount\":0,\"articleSection\":[\"Wordpress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/apps.badjoerichards.com\\\/apps\\\/developerhack\\\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/apps.badjoerichards.com\\\/apps\\\/developerhack\\\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\\\/\",\"url\":\"https:\\\/\\\/apps.badjoerichards.com\\\/apps\\\/developerhack\\\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\\\/\",\"name\":\"How to fix the deprecated blacklist_keys\\\" option key problem in Contact Form 7 in Wordpress? - Developer Hack\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/apps.badjoerichards.com\\\/apps\\\/developerhack\\\/#website\"},\"datePublished\":\"2021-02-14T09:07:40+00:00\",\"dateModified\":\"2021-02-14T09:09:07+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/apps.badjoerichards.com\\\/apps\\\/developerhack\\\/#\\\/schema\\\/person\\\/01df012e94dd976ac49e50cdbf0e38d6\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/apps.badjoerichards.com\\\/apps\\\/developerhack\\\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/apps.badjoerichards.com\\\/apps\\\/developerhack\\\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/apps.badjoerichards.com\\\/apps\\\/developerhack\\\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/apps.badjoerichards.com\\\/apps\\\/developerhack\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to fix the deprecated blacklist_keys&#8221; option key problem in Contact Form 7 in WordPress?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/apps.badjoerichards.com\\\/apps\\\/developerhack\\\/#website\",\"url\":\"https:\\\/\\\/apps.badjoerichards.com\\\/apps\\\/developerhack\\\/\",\"name\":\"Developer Hack\",\"description\":\"Hacks, tips, tricks and best practices for developers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/apps.badjoerichards.com\\\/apps\\\/developerhack\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/apps.badjoerichards.com\\\/apps\\\/developerhack\\\/#\\\/schema\\\/person\\\/01df012e94dd976ac49e50cdbf0e38d6\",\"name\":\"Bad Joe\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2b54d3bed829ff130da6aac31c730d5d4c6276a2c0f03c5afa5e083c5c6ca2c4?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2b54d3bed829ff130da6aac31c730d5d4c6276a2c0f03c5afa5e083c5c6ca2c4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/2b54d3bed829ff130da6aac31c730d5d4c6276a2c0f03c5afa5e083c5c6ca2c4?s=96&d=mm&r=g\",\"caption\":\"Bad Joe\"},\"url\":\"https:\\\/\\\/apps.badjoerichards.com\\\/apps\\\/developerhack\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to fix the deprecated blacklist_keys\" option key problem in Contact Form 7 in Wordpress? - Developer Hack","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:\/\/apps.badjoerichards.com\/apps\/developerhack\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\/","og_locale":"en_US","og_type":"article","og_title":"How to fix the deprecated blacklist_keys\" option key problem in Contact Form 7 in Wordpress? - Developer Hack","og_description":"Last updated: 20210214 &nbsp; If you get the error message when sending a message in Contact Form 7 on your WordPress: Deprecated: get_option was called with an argument that is\u00a0deprecated since version 5.5.0! The &#8220;blacklist_keys&#8221; option key has been renamed to &#8220;disallowed_keys&#8221;. in\u00a0\/wp-includes\/functions.php\u00a0on line\u00a05143 &nbsp; Then simply do this: I was able to remove this &hellip; Continue reading \"How to fix the deprecated blacklist_keys&#8221; option key problem in Contact Form 7 in WordPress?\"","og_url":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\/","og_site_name":"Developer Hack","article_published_time":"2021-02-14T09:07:40+00:00","article_modified_time":"2021-02-14T09:09:07+00:00","author":"Bad Joe","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Bad Joe"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\/#article","isPartOf":{"@id":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\/"},"author":{"name":"Bad Joe","@id":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/#\/schema\/person\/01df012e94dd976ac49e50cdbf0e38d6"},"headline":"How to fix the deprecated blacklist_keys&#8221; option key problem in Contact Form 7 in WordPress?","datePublished":"2021-02-14T09:07:40+00:00","dateModified":"2021-02-14T09:09:07+00:00","mainEntityOfPage":{"@id":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\/"},"wordCount":112,"commentCount":0,"articleSection":["Wordpress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/apps.badjoerichards.com\/apps\/developerhack\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\/","url":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\/","name":"How to fix the deprecated blacklist_keys\" option key problem in Contact Form 7 in Wordpress? - Developer Hack","isPartOf":{"@id":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/#website"},"datePublished":"2021-02-14T09:07:40+00:00","dateModified":"2021-02-14T09:09:07+00:00","author":{"@id":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/#\/schema\/person\/01df012e94dd976ac49e50cdbf0e38d6"},"breadcrumb":{"@id":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/apps.badjoerichards.com\/apps\/developerhack\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/how-to-fix-the-deprecated-blacklist_keys-option-key-problem-in-contact-form-7-in-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/"},{"@type":"ListItem","position":2,"name":"How to fix the deprecated blacklist_keys&#8221; option key problem in Contact Form 7 in WordPress?"}]},{"@type":"WebSite","@id":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/#website","url":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/","name":"Developer Hack","description":"Hacks, tips, tricks and best practices for developers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/#\/schema\/person\/01df012e94dd976ac49e50cdbf0e38d6","name":"Bad Joe","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/2b54d3bed829ff130da6aac31c730d5d4c6276a2c0f03c5afa5e083c5c6ca2c4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/2b54d3bed829ff130da6aac31c730d5d4c6276a2c0f03c5afa5e083c5c6ca2c4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2b54d3bed829ff130da6aac31c730d5d4c6276a2c0f03c5afa5e083c5c6ca2c4?s=96&d=mm&r=g","caption":"Bad Joe"},"url":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/wp-json\/wp\/v2\/posts\/303","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/wp-json\/wp\/v2\/comments?post=303"}],"version-history":[{"count":3,"href":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/wp-json\/wp\/v2\/posts\/303\/revisions"}],"predecessor-version":[{"id":307,"href":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/wp-json\/wp\/v2\/posts\/303\/revisions\/307"}],"wp:attachment":[{"href":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/wp-json\/wp\/v2\/media?parent=303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/wp-json\/wp\/v2\/categories?post=303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apps.badjoerichards.com\/apps\/developerhack\/wp-json\/wp\/v2\/tags?post=303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}