I’m writing a plugin that includes a PHP script to be loaded/excecuted via an AJAX request. The script includes some standard WP functions; get_posts() as an example.
The script works fine normally, when included anywhere in my theme’s code. However, when I request the script file via AJAX, the standard WordPress functions always yield the following error:
Fatal error: Call to undefined function…
Does anyone know why this might be? Thank you.
- The topic ‘plugin problem – “Call to undefined function” error’ is closed to new replies.