16 posts
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Bought between 1 and 9 items
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars
  • Has been a member for 3-4 years
elementpz says

Hello,
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 ?

Kind regards.

by
by
by
by
by
by