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 need to load the wp-load.php file, which will then allow you to call wordpress functions.
For example:
require( '../wordpress/wp-load.php' );
with 'wordpress' being your install root.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With