0 votes
4.1k views
in Plugins by (1.3k points)
Fatal error: Call to undefined function wp_get_current_user() in

Why is thi happening on my plugin page?

1 Answer

0 votes
by
include_once(ABSPATH . "wp-includes/pluggable.php");
Add this to the top of that page.

Should be fine.

Related questions

+2 votes
2 answers 9.8k views
+1 vote
1 answer 3.4k views
0 votes
1 answer 2.3k views
0 votes
1 answer 2.5k views
0 votes
0 answers 1.0k views
asked Dec 6, 2016 in Laravel by Jinu
+1 vote
1 answer 1.9k views
asked Oct 14, 2016 in Wordpress by Justin
...