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_info);
Il n'y a pas de questions bêtes

Photo de Christopher Gower sur Unsplash
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_info);