{"id":795,"date":"2009-06-10T11:37:48","date_gmt":"2009-06-10T16:37:48","guid":{"rendered":"http:\/\/emresaglam.com\/blog\/?p=795"},"modified":"2009-06-10T11:40:22","modified_gmt":"2009-06-10T16:40:22","slug":"twit-and-shout-plugin-for-wordpress","status":"publish","type":"post","link":"https:\/\/emresaglam.com\/blog\/blog\/2009\/06\/10\/twit-and-shout-plugin-for-wordpress\/","title":{"rendered":"Twit and Shout plugin for WordPress"},"content":{"rendered":"<p>So I finished the skeleton of my plugin and I just tested, it&#8217;s working. \ud83d\ude42<\/p>\n<p>It basically sends a twitter update to my twitter account (That I&#8217;m not using at all) whenever I publish a new <span style=\"text-decoration: line-through;\">article<\/span> entry on my blog with a link to the new entry. Also the link to the entry is converted to <a href=\"http:\/\/tinyurl.com\">tinyurl<\/a>. I do that with <a href=\"http:\/\/www.php.net\/curl\">php cUrl<\/a> libraries. This is not the most elegant way of doing it, I&#8217;d rather open sockets and do it but I don&#8217;t have much time to spend on this \ud83d\ude1b<\/p>\n<p>The plugin currently works, I know how to send a message each time my article is published, I know how to add an admin sub menu to the Settings main menu.I also know how to display a proper form to do admin settings for my plugin.<\/p>\n<p>I still don&#8217;t know how to save my plugin&#8217;s variables to the wp_options table. There is way, I know, but I didn&#8217;t have time to investigate it. This is to save\/edit the twitter username\/password and also maybe the twitter update message to the WP database so that it&#8217;s not in the cleartext in plugins. (Easier for dummies :P)<\/p>\n<p>Next version will handle these issues, then I will release it to the public. \ud83d\ude42 (btw, there are at least 5 plugins already doing this so you <strong>really <\/strong>don&#8217;t need mine)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So I finished the skeleton of my plugin and I just tested, it&#8217;s working. \ud83d\ude42 It basically sends a twitter update to my twitter account (That I&#8217;m not using at all) whenever I publish a new article entry on my blog with a link to the new entry. Also the link to the entry is &hellip; <a href=\"https:\/\/emresaglam.com\/blog\/blog\/2009\/06\/10\/twit-and-shout-plugin-for-wordpress\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Twit and Shout plugin for WordPress<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[17,20],"_links":{"self":[{"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/posts\/795"}],"collection":[{"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/comments?post=795"}],"version-history":[{"count":3,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/posts\/795\/revisions"}],"predecessor-version":[{"id":797,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/posts\/795\/revisions\/797"}],"wp:attachment":[{"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/media?parent=795"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/categories?post=795"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/tags?post=795"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}