Hook before page load/display (2 posts)

  1. allstar
    Posted 7 years ago #

    Currently using add_action('get_header', ' ');
    to run some code before the page is shown, however it is very slow, is there an earlier hook that can be used before the page is displayed?

  2. allstar
    Posted 7 years ago #

    Sorry forgot to mention that I can't put it in the index.php file because I need to check a person is logged in.

Topic Closed

This topic has been closed to new replies.

About this Topic