<?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 User Favorites: maxelcat</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Tue, 21 May 2013 23:33:08 +0000</pubDate>

<item>
<title>maxelcat on "remove_filter not working (seemingly)"</title>
<link>http://themeshaper.com/forums/topic/remove_filter-not-working-seemingly#post-26767</link>
<pubDate>Wed, 02 May 2012 19:35:10 +0000</pubDate>
<dc:creator>maxelcat</dc:creator>
<guid isPermaLink="false">26767@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Sorry about the &#34;look&#34; of my post - did try back ticks and ...&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function codeLook(){
echo &#38;#39;&#38;lt;p&#38;gt;yippe I think I have it now&#38;lt;/p&#38;gt;&#38;#39;;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Thanks also for the really helpful answer. I see where I was going wrong - will try to see if I can work my way through your answers!&#60;/p&#62;
&#60;p&#62;Thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "remove_filter not working (seemingly)"</title>
<link>http://themeshaper.com/forums/topic/remove_filter-not-working-seemingly#post-26761</link>
<pubDate>Wed, 02 May 2012 14:39:32 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">26761@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;please put code between backtick marks thats the ` .  on a US keyboard is shares the key with the ~ to the left of the 1.  [code] doesn't do anything here.&#60;/p&#62;
&#60;p&#62;next, remove_filter works just fine but you haven't added it to a hook so it does nothing.  put it on the init hook (heads up this is the same process for removing an action)&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function kia_remove_filter(){
remove_filter(&#38;#39;wp_page_menu_args&#38;#39;,&#38;#39;thematic_page_menu_args&#38;#39;);
}
add_action(&#38;#39;init&#38;#39;,&#38;#39;kia_remove_filter&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;although there really is no need to remove the filter.  you could give your function a later priority so that it will do your function AFTER the thematic function.  &#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function maxelcat_page_menu_args(){

$args = array (
&#38;#39;sort_column&#38;#39; =&#38;gt; &#38;#39;menu_order&#38;#39;,
&#38;#39;menu_class&#38;#39; =&#38;gt; &#38;#39;menu&#38;#39;,
...
&#38;#39;link_after&#38;#39; =&#38;gt; &#38;#39;&#38;#39;
);
return $args;
}
add_filter (&#38;#39;wp_page_menu_args&#38;#39;,&#38;#39;maxelcat_page_menu_args&#38;#39;,99);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;or b/c thematic has a filter in the header-extensions.php function where it creates the page menu args, you could target the thematic filter instead of the WP one.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function maxelcat_page_menu_args(){

$args = array (
&#38;#39;sort_column&#38;#39; =&#38;gt; &#38;#39;menu_order&#38;#39;,
&#38;#39;menu_class&#38;#39; =&#38;gt; &#38;#39;menu&#38;#39;,
...
&#38;#39;link_after&#38;#39; =&#38;gt; &#38;#39;&#38;#39;
);
return $args;
}
add_filter (&#38;#39;thematic_page_menu_args&#38;#39;,&#38;#39;maxelcat_page_menu_args&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;any of those should work, no need for all of them.
&#60;/p&#62;</description>
</item>
<item>
<title>maxelcat on "remove_filter not working (seemingly)"</title>
<link>http://themeshaper.com/forums/topic/remove_filter-not-working-seemingly#post-26759</link>
<pubDate>Wed, 02 May 2012 13:09:11 +0000</pubDate>
<dc:creator>maxelcat</dc:creator>
<guid isPermaLink="false">26759@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi&#60;/p&#62;
&#60;p&#62;I am learning how to use thematic to make a theme. I must say, so far its great! However, I have got a little stuck.&#60;/p&#62;
&#60;p&#62;I want to edit the list of args that is sent for the menu&#60;/p&#62;
&#60;p&#62;In header-extensions.php I find&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function thematic_page_menu_args() {
	$args = array (
		&#38;#39;sort_column&#38;#39; =&#38;gt; &#38;#39;menu_order&#38;#39;,
                etc...........
		&#38;#39;link_after&#38;#39;  =&#38;gt; &#38;#39;&#38;#39;
	);
	return $args;
        }

	add_filter(&#38;#39;wp_page_menu_args&#38;#39;,&#38;#39;thematic_page_menu_args&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;In my theme I have a functions.php. I want to avoid editing the thematic stuff if I can avoid it so I thought&#60;/p&#62;
&#60;p&#62;do something like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function maxelcat_page_menu_args(){		

		$args = array (
			&#38;#39;sort_column&#38;#39; =&#38;gt; &#38;#39;menu_order&#38;#39;,
			&#38;#39;menu_class&#38;#39;  =&#38;gt; &#38;#39;menu&#38;#39;,
			...
			&#38;#39;link_after&#38;#39;  =&#38;gt; &#38;#39;&#38;#39;
		);
	return $args;
}

remove_filter(&#38;#39;wp_page_menu_args&#38;#39;,&#38;#39;thematic_page_menu_args&#38;#39;);
add_filter (&#38;#39;wp_page_menu_args&#38;#39;,&#38;#39;maxelcat_page_menu_args&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The plan being to remove the thematic version of the filter and add my own. However, this doesn't work. &#60;/p&#62;
&#60;p&#62;If I comment out the &#60;code&#62;add_filter(&#38;#39;wp_page_menu_args&#38;#39;,&#38;#39;thematic_page_menu_args&#38;#39;);&#60;/code&#62; then it does work, but as I said I don't want to mess with the thematic framework if I can avoid it.&#60;/p&#62;
&#60;p&#62;What am I doing wrong please&#60;/p&#62;
&#60;p&#62;Many thanks
&#60;/p&#62;</description>
</item>

</channel>
</rss>
