How to resolve “Call to undefined function”?
-
recently i wrote a php script to handle an ajax request, but i cannot use wordpress function in it, it says “Fatal error: Call to undefined function get_userdata() in …”
I guess it is because i didn’t include wordpress library, but these functions are always quietly loaded in normal php scripts such as header.php, functions.php, how do i load them manually?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘How to resolve “Call to undefined function”?’ is closed to new replies.