16 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 1+ items on Envato Market
+2 more
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