Tag Info

New answers tagged

2

I am not calling it inside of a hook but just straight away as the first thing in a MU plugin. At that point all the info you are requesting won't be available. That's running before any hook and before WP is fully loaded. Use a hook like wp_loaded, admin_init, after_setup_theme ... whatever serves your purpose best.



Top 50 recent answers are included