Not exactly. I want to call WordPress functions like create user or post a story – but I want to do it from a PHP class on the same site.
When I invoke
define(‘WP_USE_THEMES’, false);
include_once( dirname(__FILE__) . ‘/wp-blog-header.php’ );
The include loop ends up trying to redirect the page to my wordpress site.
Is there a way to include the function definitions without executing anything…so I can just call stuff from my PHP class?