[wp-hackers] Child theme functions.php & processing order

Ian Stewart ian at themeshaper.com
Fri Dec 11 01:54:55 UTC 2009


If you've got action hooks you can use remove_action at init like so …

function remove_foo() {
 remove_action('some_hook','some_action',optional-postition-number-if-there-is-one);
}
add_action('init','remove_foo');

… in your Child Theme's functions file.

On Thu, Dec 10, 2009 at 7:32 PM, Doug Stewart <zamoose at gmail.com> wrote:

> Howdy all. I need a gentle shove in the right direction on this one.
>
> When processing a child theme, which ends up getting executed by WordPress
> first, the child or the parent functions.php?  And, parallel to this, if I
> have action or filter hooks registered in the parent, what's the best way to
> ensure that my child theme can override/alter the parent's functions?
>
> --
> Doug Stewart
> @zamoose
> http://literalbarrage.org/blog/
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Ian Stewart

http://ThemeShaper.com/
http://twitter.com/iandstewart/
http://ianstewart.stumbleupon.com/


More information about the wp-hackers mailing list