Use WordPress functions in a custom PHP file

There may be some instances where you want to use all the WordPress functions outside of the main WordPress infrastructure, i.e. in a custom PHP file. To achieve this you simply need to include the wp-load.php file which will load up all the core WordPress files. 

require_once('/path/to/wp-load.php');

Sign Up
comments powered by Disqus
Sign Up

Popular Tags

350x250

Need a web developer?

If you'd like to work with code synthesis on your next project get in touch via the contact page.