Going to post this basically as a note to myself because it’s hit me way too many times.
You can’t use the after_plugins
hook in a WordPress theme because the theme isn’t loaded until after the after_plugins
hook has already fired.
I’ve tried to use this hook in a theme several times and always ended up frustrated trying to figure out why it wasn’t working. Next time hopefully I’ll remember this post and save some time.
Be First to Comment