Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Thank's for your suggestion. Since requiring the wp-blog-hreader.php sets up wordpress functions this solution doesn't work. The "add_actio" function has not been initialized. I tried to wrap my problematic function in your suggested one which resulted in this function not being executed at all.