Error thrown

Call to undefined function wp_set_current_user()