When I use below in php code, I have a fatal error. What's happen? Let me know any reason.
$current_user = wp_get_current_user(); Fatal error: Call to undefined function is_user_logged_in() in
$current_user = wp_get_current_user();
Fatal error: Call to undefined function is_user_logged_in() in