<?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/"
	xmlns:coop="http://www.google.com/coop/namespace"
	>

<channel>
	<title>Weblog Tools Collection &#187; Tutorials</title>
	<atom:link href="http://weblogtoolscollection.com/archives/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://weblogtoolscollection.com</link>
	<description>Weblog Tools Blogging Tools Blog</description>
	<lastBuildDate>Sat, 20 Mar 2010 18:22:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Actions and Filters and Classes, Oh My!</title>
		<link>http://weblogtoolscollection.com/archives/2009/08/26/actions-and-filters-and-classes-oh-my/</link>
		<comments>http://weblogtoolscollection.com/archives/2009/08/26/actions-and-filters-and-classes-oh-my/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 21:37:22 +0000</pubDate>
		<dc:creator>James Dimick</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress Hack]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[Action]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[Filter]]></category>

		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=6550</guid>
		<description><![CDATA[Ever wondered how you can manipulate WordPress filters and actions that are defined inside a PHP class?
I did! I was working on a project recently that needed a plugin. The only problem was that the plugin was inserting some unnecessary cruft into the header of my theme. So, I figured I&#8217;d just use the remove_filter]]></description>
			<content:encoded><![CDATA[<p>Ever wondered how you can manipulate WordPress filters and actions that are defined inside a PHP class?</p>
<p>I did! I was working on a project recently that needed a plugin. The only problem was that the plugin was inserting some unnecessary cruft into the header of my theme. So, I figured I&#8217;d just use the <code><a href="http://codex.wordpress.org/Function_Reference/remove_filter">remove_filter</a></code> function WordPress provides&#8230; right?</p>
<p>Hold on a second! It&#8217;s not working!? But I put in the function name just how the codex explains it:</p>
<p><code>remove_filter('wp_head', 'the_crufty_function');</code></p>
<p>Why would it not work? Time to do some troubleshooting&#8230; So, I opened up the main plugin PHP file in my code editor and began to look around. What&#8217;s this? It&#8217;s a class! Hmm&#8230; But why should that make a difference?</p>
<p>It seems that WordPress requires a special reference to the function if it is defined inside a class. If you, the reader, are at all familiar with PHP classes then you probably know that you can usually access a class&#8217;s functions like this:</p>
<p><code>$the_class_initiator_variable-&gt;some_function();</code></p>
<p>So, lets give that a try:</p>
<p><code>remove_filter('wp_head', $the_crufty_class-&gt;the_crufty_function);</code></p>
<p>Still nothing&#8230; Oh boy&#8230; What do I do now? I guess we&#8217;ll try some Googling&#8230;</p>
<p><em>&#8230;Hmm&#8230;</em></p>
<p><em>&#8230;Not finding much&#8230;</em></p>
<p>Well&#8230; after much searching and trying different things I finally came upon this:</p>
<p><code>remove_filter('wp_head', array(&amp;$the_crufty_class, 'the_crufty_function'));</code></p>
<p>It works! <strong>Wonderful!</strong></p>
<p>You take the class initiator variable and the name of the function and put it in an array. Simple as that!</p>
<p><strong>Note:</strong> No, that ampersand is not a typo! It sets up a reference to the original variable instead of copying it’s value. You&#8217;d be surprised how many people don&#8217;t know what the ampersand does in PHP. I didn&#8217;t know for the longest time.</p>
<p>Also, because the <code>remove_filter</code> and <code>remove_action</code> functions are so similar this method applies to both.</p>
<p>There you have it! Just a quick little tip regarding an issue that doesn&#8217;t seem to be very well documented. I&#8217;m sure some of the experts out there already know of this but, I didn&#8217;t. I&#8217;m willing to assume there are some people out there like me who are racking their brains over this very issue.</p>
<p>Hope it helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://weblogtoolscollection.com/archives/2009/08/26/actions-and-filters-and-classes-oh-my/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
			<coop:keyword><![CDATA[Tutorials]]></coop:keyword>
		<coop:keyword><![CDATA[WordPress Hack]]></coop:keyword>
		<coop:keyword><![CDATA[WordPress Plugins]]></coop:keyword>
		<coop:keyword><![CDATA[Action]]></coop:keyword>
		<coop:keyword><![CDATA[Class]]></coop:keyword>
		<coop:keyword><![CDATA[Filter]]></coop:keyword>
	</item>
		<item>
		<title>Create Private Twitter Like Site With WordPress</title>
		<link>http://weblogtoolscollection.com/archives/2009/07/23/create-private-twitter-like-site-with-wordpress/</link>
		<comments>http://weblogtoolscollection.com/archives/2009/07/23/create-private-twitter-like-site-with-wordpress/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 21:13:22 +0000</pubDate>
		<dc:creator>Keith Dsouza</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[WordPress Tutorials]]></category>

		<guid isPermaLink="false">http://weblogtoolscollection.com/archives/2009/07/23/create-private-twitter-like-site-with-wordpress/</guid>
		<description><![CDATA[Twitter is definitely becoming popular day by day, by far it is one of the most easiest way to communicate with others.]]></description>
			<content:encoded><![CDATA[<p>Twitter is definitely becoming popular day by day, by far it is one of the most easiest way to communicate with others.</p>
<p>If you want to create a site similar to twitter, Cats Who Code has a excellent step by step tutorial that will help you <a href="http://feedproxy.google.com/~r/Catswhocode/~3/gEyKRW09jDc/create-your-own-private-twitter-site-using-wordpress">create a private twitter site using WordPress</a>.</p>
<p>BTW if you are on twitter, don’t forget to follow us <a href="http://twitter.com/weblogtooltips">@weblogtooltips</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://weblogtoolscollection.com/archives/2009/07/23/create-private-twitter-like-site-with-wordpress/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
			<coop:keyword><![CDATA[Tutorials]]></coop:keyword>
		<coop:keyword><![CDATA[WordPress]]></coop:keyword>
		<coop:keyword><![CDATA[WordPress Tips]]></coop:keyword>
		<coop:keyword><![CDATA[twitter]]></coop:keyword>
		<coop:keyword><![CDATA[WordPress Tutorials]]></coop:keyword>
	</item>
		<item>
		<title>WordPress Plugin Development Beginner&#8217;s Guide</title>
		<link>http://weblogtoolscollection.com/archives/2009/03/05/wordpress-plugin-development-beginners-guide/</link>
		<comments>http://weblogtoolscollection.com/archives/2009/03/05/wordpress-plugin-development-beginners-guide/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 15:55:59 +0000</pubDate>
		<dc:creator>Ajay</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[plugins]]></category>

		<guid isPermaLink="false">http://weblogtoolscollection.com/archives/2009/03/05/wordpress-plugin-development-beginners-guide/</guid>
		<description><![CDATA[Vladimir Prevolac, the developer of several plugins and themes for WordPress has released a book titled WordPress Plugin Development (Beginners&#8217; Guide).
The book, written for anyone who wishes to author WordPress plugins, consists of eight chapters, six of which are dealing with development of actual plugins from scratch.
Here&#8217;s what you can learn:

Get to know the WordPress]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.prelovac.com/vladimir/">Vladimir Prevolac</a>, the developer of several plugins and themes for WordPress has released a book titled <a href="http://www.prelovac.com/vladimir/wordpress-plugin-development-book">WordPress Plugin Development (Beginners&#8217; Guide)</a>.</p>
<p>The book, written for anyone who wishes to author WordPress plugins, consists of eight chapters, six of which are dealing with development of actual plugins from scratch.</p>
<p>Here&#8217;s what you can learn:</p>
<ul>
<li>Get to know the WordPress code base, WordPress&#8217;s plug-in architecture, and the plug-in application programming interface (API) and learn how to hack it </li>
<li>Master the WordPress database and the API &#8211; access and manipulate data, handle user roles and permissions, posts, and so on </li>
<li>Hook into the rest of WordPress using actions and filters </li>
<li>Change the way your WordPress backend looks by customizing menus, submenus, and the plug-in admin panel </li>
<li>Integrate AJAX and jQuery into your plug-ins to dynamically generate content </li>
<li>Hook directly to WordPress edit pages and use AJAX to generate fast searches </li>
<li>Integrate your plug-in with WordPress panels and the tinyMCE editor </li>
<li>Access and work with third-party APIs like Flickr </li>
<li>Implement localization support for users of other languages </li>
<li>Maintain and manage your plug-in using SVN and publish it to the WordPress Plugin Repository </li>
<li>Handle security issues and make your plug-ins safer to use </li>
</ul>
<p>The book retails for $39.99 for the hard copy and $31.99 for the eBook. You can order the same from <a href="http://www.packtpub.com/wordpress-plug-in-development/book/mid/11020930cx0a">Packt Publishing</a> or <a href="http://www.amazon.com/WordPress-Plugin-Development-Beginners-Guide/dp/1847193595/">Amazon</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://weblogtoolscollection.com/archives/2009/03/05/wordpress-plugin-development-beginners-guide/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
			<coop:keyword><![CDATA[Tutorials]]></coop:keyword>
		<coop:keyword><![CDATA[WordPress]]></coop:keyword>
		<coop:keyword><![CDATA[WordPress Plugins]]></coop:keyword>
		<coop:keyword><![CDATA[books]]></coop:keyword>
		<coop:keyword><![CDATA[plugins]]></coop:keyword>
	</item>
		<item>
		<title>Tutorial: Creating Custom Write Panels in WordPress</title>
		<link>http://weblogtoolscollection.com/archives/2008/10/20/tutorial-creating-custom-write-panels-in-wordpress/</link>
		<comments>http://weblogtoolscollection.com/archives/2008/10/20/tutorial-creating-custom-write-panels-in-wordpress/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 23:12:02 +0000</pubDate>
		<dc:creator>Mark Ghosh</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Hack]]></category>
		<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[custom fields]]></category>
		<category><![CDATA[custom write panel]]></category>
		<category><![CDATA[wordpress tutorial]]></category>

		<guid isPermaLink="false">http://weblogtoolscollection.com/?p=4397</guid>
		<description><![CDATA[Tutorial: Creating Custom Write Panels in WordPress.: A fantastic, detailed and quite useful tutorial on creating custom write panels for the WordPress Write Post page. I had written something similar for the WordPress Jobs site and it turned out to be a fantastic tool to quickly get to and add/modify Custom Fields in posts. Custom]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><a href="http://wefunction.com/2008/10/tutorial-creating-custom-write-panels-in-wordpress/">Tutorial: Creating Custom Write Panels in WordPress</a>.: A fantastic, detailed and quite useful tutorial on creating custom write panels for the WordPress Write Post page. I had written something similar for the <a href="http://jobs.wordpress.net">WordPress Jobs </a>site and it turned out to be a fantastic tool to quickly get to and add/modify Custom Fields in posts. Custom write panels are most useful for customized installations of WordPress and could be used to add many different types of information into a post both easily and quickly. The image below shows a couple of examples of custom panels and I am sure there are hundreds more.</p>
<p style="text-align: left;"><a href="http://wefunction.com/wp-content/uploads/2008/10/custom_write_panel_example.jpg" rel="thumbnail"><img class="aligncenter size-medium wp-image-4399" title="custom_write_panel_example-490x150" src="http://weblogtoolscollection.com/b2-img/2008/10/custom_write_panel_example-490x150-300x91.jpg" alt="" width="300" height="91" /></a></p>
<p style="text-align: left;">This tutorial makes use of <a href="http://codex.wordpress.org/Using_Custom_Fields">Custom Fields in WordPress</a> using the various functions that help manage Custom Fields (I keep typing customer), and is a shining example of how useful and flexible Custom Fields can be in developing a full CMS with WordPress.</p>
<p style="text-align: left;">Since the final code is included in the tutorial, if you were to put together a Custom Write Panel for your blog with the help of the tutorial, what would you use it for? I would love to use it to add updates to posts, which would then be displayed with some extra styling and markup to denote the change in status of the item in the post.</p>
]]></content:encoded>
			<wfw:commentRss>http://weblogtoolscollection.com/archives/2008/10/20/tutorial-creating-custom-write-panels-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
			<coop:keyword><![CDATA[Blogging]]></coop:keyword>
		<coop:keyword><![CDATA[Tutorials]]></coop:keyword>
		<coop:keyword><![CDATA[WordPress]]></coop:keyword>
		<coop:keyword><![CDATA[WordPress Hack]]></coop:keyword>
		<coop:keyword><![CDATA[WordPress Tips]]></coop:keyword>
		<coop:keyword><![CDATA[custom fields]]></coop:keyword>
		<coop:keyword><![CDATA[custom write panel]]></coop:keyword>
		<coop:keyword><![CDATA[wordpress tutorial]]></coop:keyword>
	</item>
	</channel>
</rss>
