Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress WordPress Hooks - Actions and Filters Action Functions in WordPress Action Functions in WordPress Quiz

Malisa Stanojevic
Malisa Stanojevic
782 Points

"What function would you use to unhook a function from a filter?" question. Is this a mistake?

How comes that "remove_filter()" is not correct answer?

2 Answers

Zac Gordon
STAFF
Zac Gordon
Treehouse Guest Teacher

Sorry, should read remove from "action" since it's in the Action stage :) All fixed now.

That question confused me too. I think you are correct -- here's the documentation from the codes for remove_filter();

"This function removes a function attached to a specified filter hook. This method can be used to remove default functions attached to a specific filter hook and possibly replace them with a substitute."

http://codex.wordpress.org/Function_Reference/remove_filter