After refactoring/restructuring files in my plug-in, I now get the
Uncaught Error: Call to undefined function get_userdata()
$current_user_id = get_current_user_id();
$current_user_meta = get_userdata($current_user_id);
I also tried as it was before, in another .php file that was required by my-project.php
These lines are and were appearing quite early in my plug-in code … am I missing some dependency before running them?
Read more here:: Call to undefined function get_userdata() in plugin