• Hey all,

    I’m getting the following error from a plugin that I have written –

    Fatal error: Call to undefined function wp_get_current_user() in C:\wamp\www\website\test\wp-includes\capabilities.php on line 1028

    To solve this I need to include wp-includes/pluggable.php, but I’m struggling to do this reliably as different servers allow differnt ways of accessing files and give different information.

    For example – include_once(get_bloginfo('home').'/wp-includes/pluggable.php'); won’t work as many servers don’t allow you to access files via a URL.

    Is anyone able to help with this at all?

    Thanks.

  • The topic ‘Including pluggable.php’ is closed to new replies.