<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Precision Targeting with Custom Action Hooks</title>
	<atom:link href="http://digwp.com/2009/09/wordpress-action-hooks/feed/" rel="self" type="application/rss+xml" />
	<link>http://digwp.com/2009/09/wordpress-action-hooks/</link>
	<description>Take your WordPress skills to the next level.</description>
	<lastBuildDate>Sat, 11 Feb 2012 00:52:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Michael Fields</title>
		<link>http://digwp.com/2009/09/wordpress-action-hooks/#comment-1980</link>
		<dc:creator>Michael Fields</dc:creator>
		<pubDate>Sun, 11 Oct 2009 04:53:49 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=744#comment-1980</guid>
		<description>@mizwo - Perhaps the best argument for the use of actions and filters in WordPress theme and plugin development is extensibility. 

If a theme uses only function calls in it&#039;s template files, it is impossible to make customizations without directly editing the source where the function was defined - most likely in functions.php. 

If, however, the theme defines custom actions and filters and uses these in the template files, it is easy to overwrite the core functions of the theme &lt;strong&gt;without&lt;/strong&gt; directly editing the function definitions. 

You can define a new function and apply it to the custom action or filter thus adding your customizations without touching the source of the theme.

In the event that the theme becomes outdated and you need to upgrade, your functions will not be overwritten.

Hope this helps to explain.</description>
		<content:encoded><![CDATA[<p>@mizwo &#8211; Perhaps the best argument for the use of actions and filters in WordPress theme and plugin development is extensibility. </p>
<p>If a theme uses only function calls in it&#8217;s template files, it is impossible to make customizations without directly editing the source where the function was defined &#8211; most likely in functions.php. </p>
<p>If, however, the theme defines custom actions and filters and uses these in the template files, it is easy to overwrite the core functions of the theme <strong>without</strong> directly editing the function definitions. </p>
<p>You can define a new function and apply it to the custom action or filter thus adding your customizations without touching the source of the theme.</p>
<p>In the event that the theme becomes outdated and you need to upgrade, your functions will not be overwritten.</p>
<p>Hope this helps to explain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Starr</title>
		<link>http://digwp.com/2009/09/wordpress-action-hooks/#comment-1747</link>
		<dc:creator>Jeff Starr</dc:creator>
		<pubDate>Tue, 22 Sep 2009 16:18:44 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=744#comment-1747</guid>
		<description>Hey it&#039;s all good. Sometimes it&#039;s difficult to measure tone through written text, but I see now where you are coming from. There are so many ways to do things with WordPress, and it is always good to hear new ideas. =)</description>
		<content:encoded><![CDATA[<p>Hey it&#8217;s all good. Sometimes it&#8217;s difficult to measure tone through written text, but I see now where you are coming from. There are so many ways to do things with WordPress, and it is always good to hear new ideas. =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mizwo</title>
		<link>http://digwp.com/2009/09/wordpress-action-hooks/#comment-1743</link>
		<dc:creator>mizwo</dc:creator>
		<pubDate>Tue, 22 Sep 2009 07:31:31 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=744#comment-1743</guid>
		<description>Sorry, I didn&#039;t mean to question the tutorial at all. I just wasn&#039;t sure if I got the functionalities of hooks right. With &quot;I don&#039;t get it&quot; I didn&#039;t mean &quot;hey this solution is bad, mine is better&quot; I literally didn&#039;t get it.
keep it up! =)</description>
		<content:encoded><![CDATA[<p>Sorry, I didn&#8217;t mean to question the tutorial at all. I just wasn&#8217;t sure if I got the functionalities of hooks right. With &#8220;I don&#8217;t get it&#8221; I didn&#8217;t mean &#8220;hey this solution is bad, mine is better&#8221; I literally didn&#8217;t get it.<br />
keep it up! =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Starr</title>
		<link>http://digwp.com/2009/09/wordpress-action-hooks/#comment-1742</link>
		<dc:creator>Jeff Starr</dc:creator>
		<pubDate>Mon, 21 Sep 2009 22:32:13 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=744#comment-1742</guid>
		<description>Of course, there is always a better way of doing something if you know how. This tutorial is aimed more at beginners and those unfamiliar with PHP. Just showing how easy it is to output content and run scripts with built-in WordPress functionality. That&#039;s all, really. If you know of a better way, by all means use it.</description>
		<content:encoded><![CDATA[<p>Of course, there is always a better way of doing something if you know how. This tutorial is aimed more at beginners and those unfamiliar with PHP. Just showing how easy it is to output content and run scripts with built-in WordPress functionality. That&#8217;s all, really. If you know of a better way, by all means use it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mizwo</title>
		<link>http://digwp.com/2009/09/wordpress-action-hooks/#comment-1741</link>
		<dc:creator>mizwo</dc:creator>
		<pubDate>Mon, 21 Sep 2009 21:41:35 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=744#comment-1741</guid>
		<description>I don&#039;t get it. the only advantage with the hooks method seems to me that I can associate multiple functions to ONE hook, but why not call multiple functions within one other function and then call this other function within the template? this way I can actually see what the order is instead of juggling with numbers. I&#039;m new to wordpress and have never developed a theme before but I&#039;m quite familiar with php so ... again I don&#039;t get it =)</description>
		<content:encoded><![CDATA[<p>I don&#8217;t get it. the only advantage with the hooks method seems to me that I can associate multiple functions to ONE hook, but why not call multiple functions within one other function and then call this other function within the template? this way I can actually see what the order is instead of juggling with numbers. I&#8217;m new to wordpress and have never developed a theme before but I&#8217;m quite familiar with php so &#8230; again I don&#8217;t get it =)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Starr</title>
		<link>http://digwp.com/2009/09/wordpress-action-hooks/#comment-1738</link>
		<dc:creator>Jeff Starr</dc:creator>
		<pubDate>Mon, 21 Sep 2009 18:03:05 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=744#comment-1738</guid>
		<description>Absolutely, and also great when working with multiple themes. Helps to keep things organized.</description>
		<content:encoded><![CDATA[<p>Absolutely, and also great when working with multiple themes. Helps to keep things organized.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Starr</title>
		<link>http://digwp.com/2009/09/wordpress-action-hooks/#comment-1736</link>
		<dc:creator>Jeff Starr</dc:creator>
		<pubDate>Mon, 21 Sep 2009 18:02:06 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=744#comment-1736</guid>
		<description>It is indeed easy! Glad that came through in the post. Thanks for the feedback, Hassan.</description>
		<content:encoded><![CDATA[<p>It is indeed easy! Glad that came through in the post. Thanks for the feedback, Hassan.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff Starr</title>
		<link>http://digwp.com/2009/09/wordpress-action-hooks/#comment-1735</link>
		<dc:creator>Jeff Starr</dc:creator>
		<pubDate>Mon, 21 Sep 2009 18:01:14 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=744#comment-1735</guid>
		<description>Good points, thank you.</description>
		<content:encoded><![CDATA[<p>Good points, thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Hermans</title>
		<link>http://digwp.com/2009/09/wordpress-action-hooks/#comment-1731</link>
		<dc:creator>Tom Hermans</dc:creator>
		<pubDate>Mon, 21 Sep 2009 13:40:53 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=744#comment-1731</guid>
		<description>Interesting way of working. Keeps themes also nice and clean.</description>
		<content:encoded><![CDATA[<p>Interesting way of working. Keeps themes also nice and clean.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DD32</title>
		<link>http://digwp.com/2009/09/wordpress-action-hooks/#comment-1730</link>
		<dc:creator>DD32</dc:creator>
		<pubDate>Mon, 21 Sep 2009 10:07:48 +0000</pubDate>
		<guid isPermaLink="false">http://digwp.com/?p=744#comment-1730</guid>
		<description>I&#039;d like to point out that adding a custom wrapping function like that is really not needed.

Just insert  into your theme.

The main benefit of this, is that as fellow coders, we can see theres a hook RIGHT THERE, no mysterious functions to follow.

The other benefit is that plugin authors who will eventually follow your example, do the same.. Well.. Then when someone uses a theme that doesnt have the plugin enabled, all hell breaks loose. However, Had you have used do_action(&#039;custom_action&#039;) instead of custom_action_wrapper(), everything would&#039;ve been fine.......

Yes, Using a custom &quot;Tag&quot; (Its a function, -ok-?) does make things look more inline  with the rest of the theme, but it has its downsides.


(Also, Note, Theme authors, please make sure your functions are UNIQUE, say, name them _custom_function(), not my_action_hook(), Another bad plugin developer will come along and use it too, believe me).

Sorry for  the rantish comment..</description>
		<content:encoded><![CDATA[<p>I&#8217;d like to point out that adding a custom wrapping function like that is really not needed.</p>
<p>Just insert  into your theme.</p>
<p>The main benefit of this, is that as fellow coders, we can see theres a hook RIGHT THERE, no mysterious functions to follow.</p>
<p>The other benefit is that plugin authors who will eventually follow your example, do the same.. Well.. Then when someone uses a theme that doesnt have the plugin enabled, all hell breaks loose. However, Had you have used do_action(&#8216;custom_action&#8217;) instead of custom_action_wrapper(), everything would&#8217;ve been fine&#8230;&#8230;.</p>
<p>Yes, Using a custom &#8220;Tag&#8221; (Its a function, -ok-?) does make things look more inline  with the rest of the theme, but it has its downsides.</p>
<p>(Also, Note, Theme authors, please make sure your functions are UNIQUE, say, name them _custom_function(), not my_action_hook(), Another bad plugin developer will come along and use it too, believe me).</p>
<p>Sorry for  the rantish comment..</p>
]]></content:encoded>
	</item>
</channel>
</rss>

