Technote

Using hooks and filters properly

The grammar of extending WordPress — changing behaviour without touching core or the theme, and the classic ways hooks go wrong.

8 articles

Development workflow Intro

Hook timing: before init, the world is not there yet

The same code on the same hook behaves differently depending on when it runs. Taxonomies, post types and translations all see an incomplete world before init.

Developers 7 min read

Development workflow Practical

Priority wars: whoever speaks last wins

Priority is a queue position, not authority. Raising your number is a move the other side can also make, and jumping behind a translation filter sends the untranslated…

Developers 7 min read

Development workflow Advanced

Adding your own hooks: extension points instead of edits

Code with no extension points gets forked or edited in place. Where you put do_action and apply_filters — and how many — decides how long that code survives.

Developers 7 min read

Development workflow Advanced

Finding out what is attached to a hook, in order

A callback that never runs, one that runs and gets overwritten, and a hook that never fires are three different problems. Reading the registry separates all three at…

Developers 8 min read

₩270,000 · Join the program