WordPress.org

Forums

What is the first wordpress action? (2 posts)

  1. David Gard
    Member
    Posted 3 years ago #

    Hey all,

    Could somebody plese tell me the very first action that WP calls? I.e. the last action is do_action('shutdown'), but I'd like to initiate a global variable before any of my scripts start running.

    Thanks.

  2. Mark / t31os
    Moderator
    Posted 3 years ago #

    Perhaps setup_theme or plugins_loaded would be early enough for you.

    See: http://core.trac.wordpress.org/browser/tags/3.2/wp-settings.php

    Also moving this to the hacks forum, i think this question goes beyond the scope of typical "How do i X" type questions this forum is primarily filled with.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.