Title: Call to undefined function get_userdata()
Last modified: May 2, 2017

---

# Call to undefined function get_userdata()

 *  [Florian Simeth](https://wordpress.org/support/users/floriansimeth/)
 * (@floriansimeth)
 * [9 years ago](https://wordpress.org/support/topic/call-to-undefined-function-get_userdata/)
 * Hey Developers,
    a customer of mine has a problem with one of my plugins and 
   LearnPress.
 * We’re getting the following error when `get_posts()` is used anywhere in the 
   dashboard.
    It seems that LearnPress tries to hook into the `parse_query` hook
   and wants to use `get_userdata()` function. However this function is not existent
   at time of execution.
 * Uncaught Error: Call to undefined function get_userdata() in /app/public/wp-content/
   plugins/learnpress/inc/user/class-lp-user-factory.php:144
 * Maybe you can have a look at this. Thank you.

Viewing 1 replies (of 1 total)

 *  [hienphan](https://wordpress.org/support/users/hienphan/)
 * (@hienphan)
 * [9 years ago](https://wordpress.org/support/topic/call-to-undefined-function-get_userdata/#post-9107114)
 * Hi,
 * Please create topic in forum [https://thimpress.com/forums/forum/plugins/learnpress-plugin/](https://thimpress.com/forums/forum/plugins/learnpress-plugin/)
   then our developer will help you to check.
 * Regards,
 * Hien Phan.

Viewing 1 replies (of 1 total)

The topic ‘Call to undefined function get_userdata()’ is closed to new replies.

 * ![](https://ps.w.org/learnpress/assets/icon-256x256.gif?rev=3254420)
 * [LearnPress - WordPress LMS Plugin for Create and Sell Online Courses](https://wordpress.org/plugins/learnpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/learnpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/learnpress/)
 * [Active Topics](https://wordpress.org/support/plugin/learnpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/learnpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/learnpress/reviews/)

## Tags

 * [get_posts](https://wordpress.org/support/topic-tag/get_posts/)
 * [get_userdata()](https://wordpress.org/support/topic-tag/get_userdata/)

 * 1 reply
 * 2 participants
 * Last reply from: [hienphan](https://wordpress.org/support/users/hienphan/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/call-to-undefined-function-get_userdata/#post-9107114)
 * Status: not resolved