WordPress – Make WP functions accessible in a PHP script

To make all wordpress functions accessible in a PHP script, just include the wp_load.php

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

to test, we can for example display the version of the wordpress

$blog-info - get_bloginfo ('version');
print_r $blog

Leave a Reply