Thanks to Jonathan Perez for this little function to use remove_action conditionally. Helped when I was working on a WooCommerce project.
Thanks to Jonathan Perez for this little function to use remove_action conditionally. Helped when I was working on a WooCommerce project.
Hey Zac,
It’s worth noting that another place (generic to WP and not specific to Genesis) where you can use conditionals and remove_action() together is on the template_redirect hook.
It’s a very handy hook for exactly this purpose, or you know, redirects 🙂
Nice blog by the way. This is my first time to stumble across it. Bookmarked!
LikeLike