MacBook avec code sur un bureau

WordPress – Make WP functions accessible in a PHP script

To make all WordPress functions accessible in a PHP script, just include wp-load.php

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

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

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

Leave a comment