Use plugin function outside WordPress file
If you are intent on calling into WordPress functionality from outside of the usual WP workflow, you can put the following two lines in your code: define(“WP_USE_THEMES”, false); require_once(“../../../wp-blog-header.php”); Of course, the above assumes I’m calling this from within a root theme or plugin folder (the ../ indicates reverse folder traversal). It looks as though … Read more