I’m trying to use
in my plugin
But when I do I get this error ..
Fatal error: Call to undefined function wp_get_current_user() in …./blog/wp-includes/capabilities.php on line 447
Any ideas what I have to do to make current_user_can work in my plugin?
- The topic ‘Using current_user_can breaks plugin’ is closed to new replies.