Skip to content

after_plugins hook in WordPress theme

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.

Published inWordPress

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *