WordPress.org

Ready to get started?Download WordPress

Forums

after_setup_theme hook runs before mu-plugins (1 post)

  1. nddery
    Member
    Posted 9 months ago #

    Hi,

    We have a mu-plugin that defines some constant and our theme uses the "after_setup_theme" hook, which in turn uses constant defined from our mu-plugin.

    However, this does not work as the constants defined in our mu-plugin are not available at the "after_setup_thme" hook. Switching the action to run on "init" instead fixes this issue. I am not sure if this is a bug or is the intended behavior. I was under the impression that mu-plugins were loaded before everything else.

    Thanks,

    Nicolas

Reply

You must log in to post.

About this Topic