• I need to load a php function that pretty much checks the url and/or for a particular cookie, if its not set, it creates the cookie. What content WordPress loads is based on thi cookie. The problem is that i cant seem to be able to run that function early enough in the loading process. Any suggestions? header.php or functions.php doesnt seem to be soon enough.

Viewing 1 replies (of 1 total)
  • Thread Starter MACscr

    (@macscr)

    I thought i would try adding it to wp-config.php, but thats now to early as i need to be able to run get_terms() in order to get all the variables i need. Now remember that get_terms() is general to the wp install and has nothing to with what page i am on, which is a good thing. But navigation and page content is created based on this cookie, so i really need to set it as early as possible. Right now the cookie is set and i have to reload the page before it shows the right navigation/content.

Viewing 1 replies (of 1 total)
  • The topic ‘load function before WP loads anything?’ is closed to new replies.