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
+3 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.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by