External PHP-file gain access to native functions?
-
Hi guys,
I’m trying to write a plugin here, and I’m going to need jQuery to make an AJAX-call to a PHP-file (which fetches all posts as JSON).
But how can that external PHP-file gain access to native WordPress-functions such as get_posts()?
Right now the PHP-file just contains:
<?php
// …
?>But I guess I need to include the native functions somehow?
Hope you can help me, as I’m currently stuck.
Thanks in advance!
Kind regards,
Tobias
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘External PHP-file gain access to native functions?’ is closed to new replies.