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!
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
Can anybody explain what do_action is and how it differs from add_action?
I get that add_action adds your function to be run when the hook fires.
But I can't for the life of me understand from this video or from the documentation what do_action? does and how it's different from add_action
Can anyone explain this?
Micha Krapp2,228 Points
Yes maybe, but it does not only creates the hook it also executes hooks attached to it. That’s why the “do_”