{"id":4588604,"date":"2014-02-07T18:14:30","date_gmt":"2014-02-07T18:14:30","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/cookielawinfo_migrate_custom_meta-issues\/"},"modified":"2016-08-21T16:04:24","modified_gmt":"2016-08-21T16:04:24","slug":"cookielawinfo_migrate_custom_meta-issues","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/cookielawinfo_migrate_custom_meta-issues\/","title":{"rendered":"cookielawinfo_migrate_custom_meta issues"},"content":{"rendered":"<p>Hi,<\/p>\n<p>Method &#8220;cookielawinfo_migrate_custom_meta&#8221; is being called every single time admin page is loaded and obviously breaking quite a few other plugins as you never bothered to refer to codex! Why you want to overhaul WordPress\/database anyway? It seems that the goal of this method is to update meta data for all posts in your CTP, so do that on plugin activation\/installation whatever hook, not every single time someone reloads page.<\/p>\n<p>This stupid and inefficient practice causes global $post-&gt;ID hijack that basically breaks every single theme and plugin that uses WPAlchemy_MetaBox library and probably quite a few other plugins that deals with global $post.<\/p>\n<p>https:\/\/wordpress.org\/plugins\/cookie-law-info\/<\/p>\n","protected":false},"template":"","class_list":["post-4588604","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4588604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/4588604\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=4588604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}