A function to use remove_action conditionally in your WordPress templates

Thanks to Jonathan Perez for this little function to use remove_action conditionally. Helped when I was working on a WooCommerce project.

One thought on “A function to use remove_action conditionally in your WordPress templates

  1. 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!

    Like

Leave a reply to Brian Krogsgard Cancel reply