How can I load the WordPress environment in a script, so I can use WordPress’ functions?
I need this because I need to call several functions from a script which is executed asynchronously.
How can I load the WordPress environment in a script, so I can use WordPress’ functions?
I need this because I need to call several functions from a script which is executed asynchronously.
You must be logged in to post a comment.
you need to load the wp-load.php file, which will then allow you to call wordpress functions.
For example:
with ‘wordpress’ being your install root.