I am asking this here because of the huge amount of WordPress developers. I am working on couple new WP themes. I just included the update feature and now I managed to find a cool way to check before the update if the client have a valid license. But, there is this nasty thing when I call the glob to catch the license file in the template directory it returns empty string. Because the update is fetched as WP hook. and when it call it from the theme dir it uses really weird path for the glob. If I open update.lib.php directly and call the result using echo it’s all fine. Otherwise it returns blank. Could you give me some information on how to call glob() with valid path for the WP theme ? Or any other ideas ?