In the scheme of things, hooks and filters are some of the least documented parts of the WordPress code base. A few years ago, the WordPress docs team developed a roadmap for the future of WordPress documentation and as I was part of the team that developed it, I’m none too aware of where the dry patches are. So I decided to do this thing.
From Adam Brown’s hooks list, I pulled 2500+ filter and action hooks. That’s a lot of examples to write but maybe I can help some people discover new and interesting ways to extend WordPress.
These examples may not all be awesome, but that’s the beauty of crowd-sourced code reviews, we’ll get it as right as we can. And of course the bonus of all this, is that hopefully we can put some/many/all of these examples to use in the Code Reference, wherever filters may fall into the new roadmap.
Learn three filters a day for 365 days : Post Status
Wow that’s a fair few filters!
Is there any way you could get your embedded Gists to work in RSS feeds? It’s annoying, having to open the article on the site every time.
Yeah, I know somebody who managed to do it, I’ll see what I can do.
Learn Three WordPress Filters A Day
WPTavern: Learn Three WordPress Filters A Day | Marketing Online Comercial SEO
Suggestions:
1) Contact form 😉 You say ‘Submit code’ and link to your main site, but no linky to sumbity!
2) Gist embeds don’t show up in RSS feeds 🙁 If that’s not fixable, I’d switch to excerpts.
Contact form is fixed. The scheduler beat me to it. Used to be able to use noscript tags but doesn’t seem to be working (which is awesome). I guess I’ll have to add a Gist link manually (urghh).
WPTavern: Learn Three WordPress Filters A Day | BoonJack Media || We make Multimedia easy.
This is awesome. I’ve always said that 80% of learning to use anything is knowing what it’s capable of. I started developing on WP with exactly 0 knowledge and 0 experience 2 years ago, and I still have so much to learn. I’m looking forward to your overview of all these filters that I may not have even known I wanted to use!
It would be kind of cool if you could favourite certain filters, as a reference. Maybe this plugin could help with that.
Hey man, haven’t heard from you in a while. I guess filters every day was too much to take on? Well, whenever you get back to it, just wanted to say thanks. I do a lot of documentation myself, so I understand the challenge, hope you end up back on track.
Yeah, I missed a few days there following WCSF. Had a lot of catching up to do, but I’m back on track. Thanks for the words of encouragement!
I just scanned 3.6 and it has 1033 filters, 30 more for the list:) Keep up the awesome work:)