Browsing Tag


WP is not loaded correctly when usingin external scripts

i have problem with using function/events of WP in external file. Here is a code example: <?php ini_set('display_startup_errors',1); ini_set('display_errors',1); error_reporting(-1); define('THEME_ROOT', dirname(dirname(__FILE__))); define ('WP_ROOT', dirname(dirname(dirname(THEME_ROOT))));

Back to Top 103644 wordpress questions, 32 Wordpress answers.
Wordpress related, All rights reserved
Powered by Creative Advertising