<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>solidcode &#187; WordPress</title>
	<atom:link href="http://solidcode.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://solidcode.com</link>
	<description> it's what i do</description>
	<lastBuildDate>Fri, 03 Sep 2010 05:35:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>MGD-175 Open Source Web Solutions: WordPress Plugin Development Tips</title>
		<link>http://solidcode.com/2010/09/mgd-175-wordpress-plugin-development-tips/</link>
		<comments>http://solidcode.com/2010/09/mgd-175-wordpress-plugin-development-tips/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 06:13:44 +0000</pubDate>
		<dc:creator>Neil Simon</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://solidcode.com/?p=2378</guid>
		<description><![CDATA[The DandyID Services WordPress Plugin displays the social identity favicons of the blog author and displays them in the sidebar as favicons only, or a favicons list. The plugin calls the REST interface DandyID return_services() API &#8212; which returns the data as XML. The DandyID web API is listed on Programmable Web &#8212; a useful [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://wordpress.org/extend/plugins/dandyid-services/" target="_blank">DandyID Services WordPress Plugin</a> displays the social identity favicons of the blog author and displays them in the sidebar as <a href="http://billso.com/" target="_blank">favicons only</a>, or a <a href="http://www.shericandler.com/" target="_blank">favicons list</a>. The plugin calls the <a href="http://en.wikipedia.org/wiki/Representational_State_Transfer" target="_blank">REST</a> interface <a href="http://www.dandyid.org/api/documentation/return_services" target="_blank">DandyID return_services() API</a> &#8212; which returns the data as XML. The DandyID web API is listed on <a href="http://www.programmableweb.com/api/dandyid" target="_blank">Programmable Web</a> &#8212; a useful web API directory.</p>
<p>The plugin, written in PHP, has several well-documented examples of helpful WordPress plugin features.</p>
<p>See how the <a href="https://plugins.svn.wordpress.org/dandyid-services/tags/1.5.9/readme.txt" target="_blank">readme.txt</a> maps to the <a href="http://wordpress.org/extend/plugins/dandyid-services/" target="_blank">hosted plugin pages</a> and the <a href="http://wordpress.org/extend/plugins/dandyid-services/screenshots/" target="_blank">5 hosted screenshots</a>.</p>
<p>The main code module <a href="https://plugins.svn.wordpress.org/dandyid-services/tags/1.5.9/dandyid-services.php" target="_blank">dandyid-services.php</a> has examples of:</p>
<ul>
<li>Creating a sidebar widget.</li>
<p></p>
<li>Processing returned XML that is PHP4 and PHP5 compatible.</li>
<p></p>
<li>Storing and retrieving wp-database options in an array.</li>
<p></p>
<li>Embedding the plugin name and version-number into a &lt;div&gt; tag that appears on all blog pages that render the plugin. (useful for debugging &#8212; many versions of the plugin can be out there in the wild)</li>
<p></p>
<li>Localization for international language support.</li>
<p></p>
<li>Creating an options page for admin plugin configuration, including HTML that renders radio buttons and checkboxes.</li>
<p></p>
<li>Caching the DandyID API results &#8212; on a busy blog, the plugin only calls the DandyID API once every 2 hours.</li>
<p></p>
<li>A plugin activation hook that creates initialized, defaulted wp-database options.</li>
<p></p>
<li>A plugin deactivation hook that cleanly removes the plugin wp-database options.</li>
</ul>
<p>Here is the <a href="https://plugins.svn.wordpress.org/dandyid-services/tags/1.5.9/" target="_blank">WordPress maintained repository</a> that contains all of the DandyID Services Plugin files for the current release. It is packaged as a zipfile when it is downloaded from WordPress.</p>
<hr />
<p>The <a href="http://wordpress.org/extend/plugins/peoplepond/" target="_blank">PeoplePond WordPress Plugin</a> retrieves &#8220;about me&#8221; information from <a href="http://peoplepond.com/" target="_blank">PeoplePond</a>, and creates (or refreshes once daily) the About page on a blog.</p>
<p>The main code module <a href="https://plugins.svn.wordpress.org/peoplepond/tags/1.1.9/peoplepond.php" target="_blank">peoplepond.php</a> has the following examples:</p>
<ul>
<li>Hooks <a href="http://codex.wordpress.org/Function_Reference/the_content" target="_blank"> the_content()</a> with a filter hook, causing the plugin code to be called each time any page renders. If it&#8217;s the About page, the PeoplePond API is called (only once per day max) to update the About page content.</li>
<p></p>
<li>Uses <a href="http://codex.wordpress.org/Function_Reference/wp_insert_post" target="_blank">wp_insert_post()</a> and <a href="http://codex.wordpress.org/Function_Reference/wp_update_post" target="_blank">wp_update_post()</a> to create and update the content of blog posts.</li>
</ul>
<p>Here is the <a href="https://plugins.svn.wordpress.org/peoplepond/tags/1.1.9/" target="_blank">WordPress repository</a> that contains all of the PeoplePond Plugin files for the current release.</p>
]]></content:encoded>
			<wfw:commentRss>http://solidcode.com/2010/09/mgd-175-wordpress-plugin-development-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
