Title: Call to undefined function get_current_screen()
Last modified: September 22, 2026

---

# Call to undefined function get_current_screen()

 *  Resolved [Koorosh](https://wordpress.org/support/users/koorosh14/)
 * (@koorosh14)
 * [1 week, 2 days ago](https://wordpress.org/support/topic/call-to-undefined-function-get_current_screen-10/)
 * Hi there,
 * Since today our `debug.log` is filled with these messages coming from the LearnPress
   plugin:
 *     ```wp-block-code
       [21-Sep-2026 12:17:33 UTC] MESSAGE: Call to undefined function get_current_screen() FILE: public_html/wp-content/plugins/learnpress/inc/custom-post-types/course.php LINE: 230[21-Sep-2026 12:17:33 UTC] MESSAGE: Call to undefined function get_current_screen() FILE: public_html/wp-content/plugins/learnpress/inc/custom-post-types/course.php LINE: 230[21-Sep-2026 12:17:33 UTC] MESSAGE: Call to undefined function get_current_screen() FILE: public_html/wp-content/plugins/learnpress/inc/custom-post-types/lesson.php LINE: 127[21-Sep-2026 12:17:33 UTC] MESSAGE: Call to undefined function get_current_screen() FILE: public_html/wp-content/plugins/learnpress/inc/custom-post-types/lesson.php LINE: 127[21-Sep-2026 12:17:33 UTC] MESSAGE: Call to undefined function get_current_screen() FILE: public_html/wp-content/plugins/learnpress/inc/custom-post-types/quiz.php LINE: 275[21-Sep-2026 12:17:33 UTC] MESSAGE: Call to undefined function get_current_screen() FILE: public_html/wp-content/plugins/learnpress/inc/custom-post-types/quiz.php LINE: 275[21-Sep-2026 12:17:33 UTC] MESSAGE: Call to undefined function get_current_screen() FILE: public_html/wp-content/plugins/learnpress/inc/custom-post-types/question.php LINE: 348[21-Sep-2026 12:17:33 UTC] MESSAGE: Call to undefined function get_current_screen() FILE: public_html/wp-content/plugins/learnpress/inc/custom-post-types/question.php LINE: 348[21-Sep-2026 12:17:33 UTC] MESSAGE: Call to undefined function get_current_screen() FILE: public_html/wp-content/plugins/learnpress/inc/custom-post-types/course.php LINE: 230[21-Sep-2026 12:17:33 UTC] MESSAGE: Call to undefined function get_current_screen() FILE: public_html/wp-content/plugins/learnpress/inc/custom-post-types/lesson.php LINE: 127[21-Sep-2026 12:17:33 UTC] MESSAGE: Call to undefined function get_current_screen() FILE: public_html/wp-content/plugins/learnpress/inc/custom-post-types/quiz.php LINE: 275[21-Sep-2026 12:17:33 UTC] MESSAGE: Call to undefined function get_current_screen() FILE: public_html/wp-content/plugins/learnpress/inc/custom-post-types/question.php LINE: 348[21-Sep-2026 12:17:33 UTC] MESSAGE: Call to undefined function get_current_screen() FILE: public_html/wp-content/plugins/learnpress/inc/custom-post-types/course.php LINE: 230[21-Sep-2026 12:17:33 UTC] MESSAGE: Call to undefined function get_current_screen() FILE: public_html/wp-content/plugins/learnpress/inc/custom-post-types/lesson.php LINE: 127[21-Sep-2026 12:17:33 UTC] MESSAGE: Call to undefined function get_current_screen() FILE: public_html/wp-content/plugins/learnpress/inc/custom-post-types/quiz.php LINE: 275[21-Sep-2026 12:17:33 UTC] MESSAGE: Call to undefined function get_current_screen() FILE: public_html/wp-content/plugins/learnpress/inc/custom-post-types/question.php LINE: 348[21-Sep-2026 12:17:33 UTC] MESSAGE: Call to undefined function get_current_screen() FILE: public_html/wp-content/plugins/learnpress/inc/custom-post-types/course.php LINE: 230[21-Sep-2026 12:17:33 UTC] MESSAGE: Call to undefined function get_current_screen() FILE: public_html/wp-content/plugins/learnpress/inc/custom-post-types/lesson.php LINE: 127...
       ```
   
 * I’d appreciate it if you can take a look at what’s causing it
 * Thank you very much

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [brianvu-tp](https://wordpress.org/support/users/briantp/)
 * (@briantp)
 * [1 week, 2 days ago](https://wordpress.org/support/topic/call-to-undefined-function-get_current_screen-10/#post-19026165)
 * Hi Koorosh,
 * Thank you for reaching out and for the detailed report.
 * We’ve addressed this issue in a [new beta build](https://drive.google.com/file/d/1Ip8biLjTcbwzjTuPBV7sO8r3mydcZIXV/view?usp=sharing).
   Could you please try it out and let us know if the issue is resolved on your 
   end?
 * We look forward to your feedback.
 * Thanks again!
 * Best regards,
   Brianvu-tp
 *  Thread Starter [Koorosh](https://wordpress.org/support/users/koorosh14/)
 * (@koorosh14)
 * [1 week ago](https://wordpress.org/support/topic/call-to-undefined-function-get_current_screen-10/#post-19027800)
 * Hello again,
 * Sorry for the late reply, the issue seems to be fixed after installing the beta
   version.
 * Thank you very much 🫡
 *  Plugin Support [brianvu-tp](https://wordpress.org/support/users/briantp/)
 * (@briantp)
 * [1 week ago](https://wordpress.org/support/topic/call-to-undefined-function-get_current_screen-10/#post-19027839)
 * Hi Koorosh,
 * Thank you for your feedback and for confirming that everything is now functioning
   smoothly.
 * We are committed to including this fix in the next official release.
 * If you are satisfied with the plugin and the support you received, we kindly 
   request that you take a moment to leave a 5-star review for LearnPress [here](https://wordpress.org/support/plugin/learnpress/reviews/).
 * Your feedback is extremely valuable to our team and serves as a significant source
   of motivation for us to enhance our services and better serve our clients.
 * Thank you again, and please do not hesitate to contact me if you encounter any
   further issues.
 * Best regards,
   Brianvu-tp

Viewing 3 replies - 1 through 3 (of 3 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcall-to-undefined-function-get_current_screen-10%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](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/)

 * 3 replies
 * 2 participants
 * Last reply from: [brianvu-tp](https://wordpress.org/support/users/briantp/)
 * Last activity: [1 week ago](https://wordpress.org/support/topic/call-to-undefined-function-get_current_screen-10/#post-19027839)
 * Status: resolved