Answers for "use wordpress functions in external php file"

PHP
0

use wordpress functions in external php file

//add to the file that needs to use wordpress functions.
require_once("../../../../wp-load.php");
//or
require_once(rtrim($_SERVER['DOCUMENT_ROOT'], '/') . '/wp-load.php');
Posted by: Guest on December-01-2020

Code answers related to "use wordpress functions in external php file"

Browse Popular Code Answers by Language