<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: Bug: Overriding action hook calls</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Wed, 22 May 2013 09:56:16 +0000</pubDate>

<item>
<title>Jonny Janiero on "Bug: Overriding action hook calls"</title>
<link>http://themeshaper.com/forums/topic/bug-overriding-action-hook-calls#post-17515</link>
<pubDate>Sun, 05 Dec 2010 04:33:21 +0000</pubDate>
<dc:creator>Jonny Janiero</dc:creator>
<guid isPermaLink="false">17515@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;thanks for clearing that up Gene
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "Bug: Overriding action hook calls"</title>
<link>http://themeshaper.com/forums/topic/bug-overriding-action-hook-calls#post-17513</link>
<pubDate>Sun, 05 Dec 2010 04:07:01 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">17513@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Jonny,&#60;/p&#62;
&#60;p&#62;Yes, you have to override and then remove the action in a function that is hooked into init and then add again to change the priority parameter of the add_action hook. If you do not remove_action from the original priority the override will execute twice.&#60;/p&#62;
&#60;p&#62;-Gene
&#60;/p&#62;</description>
</item>
<item>
<title>Jonny Janiero on "Bug: Overriding action hook calls"</title>
<link>http://themeshaper.com/forums/topic/bug-overriding-action-hook-calls#post-17511</link>
<pubDate>Sun, 05 Dec 2010 02:59:32 +0000</pubDate>
<dc:creator>Jonny Janiero</dc:creator>
<guid isPermaLink="false">17511@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;@de_ce good find&#60;br /&#62;
@em hr many thanks for the corrections.&#60;/p&#62;
&#60;p&#62;can i ask,&#60;br /&#62;
for example...&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;childtheme_override_blogtitle&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;without using the 'add_action' part, is there a way you can still specify its position within the override&#60;/p&#62;
&#60;p&#62;example...&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;#39;thematic_header&#38;#39;,&#38;#39;thematic_blogtitle&#38;#39;,3);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;or do you just have to use the override, then remove/add new action to change position.&#60;/p&#62;
&#60;p&#62;hope any of this makes sense?
&#60;/p&#62;</description>
</item>
<item>
<title>em hr on "Bug: Overriding action hook calls"</title>
<link>http://themeshaper.com/forums/topic/bug-overriding-action-hook-calls#post-17479</link>
<pubDate>Sat, 04 Dec 2010 03:31:22 +0000</pubDate>
<dc:creator>em hr</dc:creator>
<guid isPermaLink="false">17479@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks for pointing this out. This has been corrected in the latest svn branch. &#60;/p&#62;
&#60;p&#62;You can download the latest stable development version here : &#60;a href=&#34;http://developing.thematic4you.com/thematic-development-release/&#34; rel=&#34;nofollow&#34;&#62;http://developing.thematic4you.com/thematic-development-release/&#60;/a&#62;&#60;br /&#62;
The sometimes experimental svn branch is here: &#60;a href=&#34;http://code.google.com/p/thematic/source/checkout&#34; rel=&#34;nofollow&#34;&#62;http://code.google.com/p/thematic/source/checkout&#60;/a&#62;&#60;br /&#62;
And bug reports are best made here: &#60;a href=&#34;http://code.google.com/p/thematic/issues/list&#34; rel=&#34;nofollow&#34;&#62;http://code.google.com/p/thematic/issues/list&#60;/a&#62; and in the forums ;)&#60;/p&#62;
&#60;p&#62;Thanks again,&#60;br /&#62;
Gene
&#60;/p&#62;</description>
</item>
<item>
<title>de_ce on "Bug: Overriding action hook calls"</title>
<link>http://themeshaper.com/forums/topic/bug-overriding-action-hook-calls#post-17458</link>
<pubDate>Fri, 03 Dec 2010 17:56:35 +0000</pubDate>
<dc:creator>de_ce</dc:creator>
<guid isPermaLink="false">17458@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;There are many actions hooks that are not called if a ovverriding function in a child theme is used.&#60;/p&#62;
&#60;p&#62;ex:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
// Create the blog description&#60;br /&#62;
// In the header div&#60;br /&#62;
if (function_exists('childtheme_override_blogdescription'))  {&#60;br /&#62;
	function thematic_blogdescription() {&#60;br /&#62;
		childtheme_override_blogdescription();&#60;br /&#62;
	}&#60;br /&#62;
} else {&#60;br /&#62;
	function thematic_blogdescription() {&#60;br /&#62;
		$blogdesc = '&#34;blog-description&#34;&#38;gt;' . get_bloginfo('description');&#60;br /&#62;
		if (is_home() &#124;&#124; is_front_page()) {&#60;br /&#62;
			echo &#34;\t\t&#38;lt;h1 id=$blogdesc&#38;lt;/h1&#38;gt;\n\n&#34;;&#60;br /&#62;
		} else {&#60;br /&#62;
			echo &#34;\t\t&#38;lt;div id=$blogdesc&#38;lt;/div&#38;gt;\n\n&#34;;&#60;br /&#62;
		}&#60;br /&#62;
	}&#60;br /&#62;
	add_action('thematic_header','thematic_blogdescription',5);&#60;br /&#62;
}&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;The action hook is called before the end of the if clause. It's kinda unintuitive to make a override function and call an action for the default function after it.&#60;/p&#62;
&#60;p&#62;Ex:&#60;/p&#62;
&#60;p&#62;&#60;code&#62;&#60;br /&#62;
function childtheme_override_blogdescription() { ?&#38;gt;&#60;br /&#62;
	&#38;lt;p&#38;gt;&#38;lt;?php get_bloginfo('description'); ?&#38;gt;&#38;lt;/p&#38;gt;&#60;br /&#62;
&#38;lt;?php&#60;br /&#62;
}&#60;br /&#62;
add_action('thematic_header','thematic_blogdescription',5);&#60;br /&#62;
&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;For some functions, the hooks are calld, but for other aren't. It's messy. A consitent rule would be nice.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
