{"id":1421810,"date":"2010-03-11T23:55:43","date_gmt":"2010-03-11T23:55:43","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/wordpress-bible-example\/"},"modified":"2016-08-19T16:16:14","modified_gmt":"2016-08-19T16:16:14","slug":"wordpress-bible-example","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/wordpress-bible-example\/","title":{"rendered":"WordPress bible example"},"content":{"rendered":"<p>I have picked up a copy of WordPress Bible and started to go through it.  However, at the example where we create our first plugin I hit a brickwall.  Basically, here&#8217;s the file I have created called copyright-notices.php<\/p>\n<p>I repeated the code identically to how it&#8217;s listed on the book, and it opens in the Admin section, but doesn&#8217;t let me save the footer info in the database.  Here&#8217;s the link to the full code of the plugin:<\/p>\n<p>http:\/\/pastebin.com\/VbrBYmXA<\/p>\n<p>One weird thing I noticed is that in the form we use copyright_notices_text whereas when I update an option, it says copyright_notices_test.  I think it&#8217;s a typo, but when I tried to syng them nothing happened.  Also, what exactly does the last line mean:<br \/>\nadd_action(&#8216;load-copyright-notices.php&#8217;,&#8217;save_copyright_notices&#8217;);<br \/>\nin the code example online it looks different, like so:<br \/>\nadd_action( &#8216;load-plugins_page_copyright-notices&#8217;, &#8216;save_copyright_notices&#8217; );<\/p>\n<p>I tried all combinations, but neither one worked.  The only thing between changes I made was refresh the page.  Maybe there should be a different way to reload the plugin info in order for it to get notices?<\/p>\n<p>Any thoughts are very welcome.<br \/>\nThanks!<br \/>\nLuka<\/p>\n","protected":false},"template":"","class_list":["post-1421810","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/1421810","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\/1421810\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=1421810"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}