Yahnis Elsts
Yahnis Elsts
Sure. My email is [email protected] Edit: However, it's pretty late, so I probably won't get a chance to look at the code today.
Yes, it's something like `puc_pre_inject_update_theme-$slug`. I recommend using the `addFilter` utility method for this - it will automatically add the necessary prefix and suffix to the filter tag. For example:...
I've never counted, but that seems plausible. It would run every time some code requests the `update_plugins` transient.
I did some testing and it looks like it would run at least 4 times on every admin page. This is because WordPress shows the number of available updates in...
You can use the [`add_query_arg`](https://developer.wordpress.org/reference/functions/add_query_arg/) function to significantly simplify code.
As an alternative to query arguments, you can extract the site URL from the `User-Agent` HTTP header. WordPress automatically sets the user agent to something like this: `WordPress/4.8; http://siteurl.com`. The...
Making the URL generation method public might be a good idea, but introduce a whole another helper function just for slug-based URLs? I'd say `generateDownloadUrl($package)` is just as overloadable _and_...
> The actual implementation I'm using it in is one which needs the download url to be a package attribute, so when you generate the download url, the package object...
I don't know WooCommerce well enough to answer that question.
Disclaimer: I'm not an expert on themes. Did the theme name or the theme directory change after the update? That's one thing that could make widgets inactive.