wp-load.php not loaded in my Theme

Question

I created a theme with a simple ajax call , created page name ‘index.php’ inside folder name ‘finder’
i try to load the wp-load.php but now working ,
i try this code in finder/index.php

$path = preg_replace('/wp-content.*$/','',__DIR__);

include($path.'wp-load.php');

not Working!

0
v2mpire 20202 8 months 2020-11-27T04:10:22-05:00 0 Answers 9 views 0

Leave an answer

Browse
Browse