Certain functions are undefined when called form mu-plugins folder
-
I have a correctly formatted php functions file in my mu-plugins/ directory.
When trying to use wp_is_mobile() or current_user_can(), I get an undefined function error.Fatal error: Call to undefined function wp_is_mobile() in /var/www/dev.example.com/public/wp-content/mu-plugins/multisite-functions.php on line 147
Are certain core functions defined after the mu-plugins?
How do I fix or avoid this?
Can I simply not use certain functions in mu plugins?Thank you!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Certain functions are undefined when called form mu-plugins folder’ is closed to new replies.