Organizational Research By

Surprising Reserch Topic

how to load the wordpress environment in a php script


how to load the wordpress environment in a php script  using -'ajax,wordpress,wordpress-plugin'

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.
    

asked Oct 13, 2015 by patelnikul321
0 votes
2 views



Related Hot Questions

1 Answer

0 votes

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.

answered Oct 13, 2015 by manju bhargava

...