WP Updates Updater Code Changes

In case you had not noticed, back when we released our big update we changed the updater code and they way you download the wp-updates-plugin.php and wp-updates-theme.php for themes and plugins. This had no affect on plugins and themes using the old code, but improved the code going forward.

The wp-updates-plugin.php and wp-updates-theme.php files are now generated specific to your theme or plugin and accessed from the plugin or theme screen. That means the call to the WPUpdatesPluginUpdater or WPUpdatesThemeUpdater now has your plugin or theme ID as a suffix, eg. WPUpdatesThemeUpdater_101. This means the plugin or theme ID is no longer required as a parameter:

require_once('wp-updates-plugin.php');
new WPUpdatesPluginUpdater_x( 'http://wp-updates.com/api/2/plugin', plugin_basename(__FILE__) );

We have just released an update to the wp-updates-plugin.php file for plugins. This fixes an issue we have recently encountered if there is a free plugin hosted on the WordPress.org repository with very similar name to a premium plugin on WP Updates. If the free version has a higher version number than the premium plugin, WordPress shows an update available for the premium plugin but will actually serve the update of the free version.

To apply this fix to your premium plugin login to your dashboard and select the plugin you want to update. Download the new version of the wp-updates-plugin.php file and make sure you have updated the code in your plugin to call the WPUpdatesPluginUpdater if you haven’t yet done so, to reflect the aforementioned changes.

Sellwire License Integration

If you use Sellwire to sell your themes and plugins you can now benefit from the new licensing we have just released. This means that you can now limit updates to plugins and themes with valid licenses from Sellwire, just like we introduced not that long ago for Envato marketplaces. You will now see a new integration option in the settings page for Sellwire. Once you have added that you can add and save your Sellwire API key.

The next step is edit the theme or plugin (this example is for a plugin) and select to ‘Verify Updates With’ with Sellwire. You will need to set the version of your plugin, so that all subsequent versions will be verified against Sellwire. Then enter the Sellwire File ID (found in Sellwire when you edit the file, under Licensing).

You will need to make some changes to your plugin. There is a new version of the plugin updater class that is now accessible when you are managing the versions of your plugin. Download the wp-updates-plugin.php file and replace the old file in your plugin. You will notice the code to instantiate the updater class now has a third parameter, the license key.

require_once('wp-updates-plugin.php');
new WPUpdatesPluginUpdater( 'http://wp-updates.com/api/2/plugin', plugin_basename(__FILE__), $license_key );

Once you have made the changes and released the new version of your plugin, all future updates will only be delivered if the user has entered a valid purchase code for your plugin.

That’s it – updates for your themes and plugins sold with Sellwire are now verified.

Big Update

We have been working hard recently making WP Updates better than ever, and today we have pushed a large update live!

Envato Integration

Many of our users are Envato authors selling their themes on ThemeForest and plugins on CodeCanyon and an often requested feature is verification of purchases before updates are delivered. We have listened and we have delivered.

There are a number of steps to set up the Envato verification. First, if you visit the Settings page in WP Updates you will now see a section at the bottom for Integrations. You can select ‘Envato Marketplaces’ from the drop down and click ‘Add’ to enable the integration. Then you can fill out your Envato API key and your author username.

The next step is edit the theme or plugin (this example is for a plugin) and select to ‘Verify Updates With’ with Envato Marketplaces. Then enter the ThemeForest or CodeCanyon item id.

You will need to make some changes to your plugin. There is a new version of the plugin updater class that is now accessible when you are managing the versions of your plugin. Download the wp-updates-plugin.php file and replace the old file in your plugin. You will notice the code to instantiate the updater class now has a third parameter, the license key.

require_once('wp-updates-plugin.php');
new WPUpdatesPluginUpdater( 'http://wp-updates.com/api/2/plugin', plugin_basename(__FILE__), $license_key );

To enable the verification you will need to collect and store the purchase license code from your customers within your plugin and then grab that code (e.g. using get_option()) to pass in as the license key parameter.

Once you have made the changes and released the new version of your plugin, all future updates will only be delivered if the user has entered a valid purchase code for your plugin.

That’s it – updates for your themes and plugins sold on ThemeForest and CodeCanyon are now verified.

Plugin readme.txt

Previous to this update whenever you released a new version of a plugin you would have to enter the changes that would appear in the ‘Changelog’ section of the plugin popup in the WordPress dashboard. However, now if your plugin zip file contains a valid readme.txt, then all the plugin details including Changelog, FAQs and Installation are displayed to the user as they are with free plugins on the WordPress.org repository.

When you add or edit a plugin you will see a checkbox where you can enable the readme.txt feature.

Sellwire Integration

If you are selling your themes and plugins with Sellwire you would have previously had to upload new versions of your zip files on Sellwire then on WP Updates. But now we have integrated the two services and you will see, on the Settings page under ‘Other Settings’, your WP Updates API key which you can use in Sellwire to connect the services so that updates to file versions in Sellwire are pushed over to your WP Updates items.

More

For plugins that don’t have a readme.txt, you can now add a Compatible WordPress version (the greatest version of WordPress the plugin works and is tested with) when you add a new version, so that when the update is shown as available in the WordPress dashboard it will display if it is compatible with the install’s version of WordPress, according to you, the author.

You can choose in the settings what will be displayed on the dashboard – both themes and plugins, only themes or only plugins. This is handy for pure plugin or theme authors so the dashboard is simplified.

Discounted Yearly Pricing Options

As part of our commitment to making WP Updates as user friendly as possible we’ve decided to add discounted yearly pricing options. This means that you can pay for WP Updates on a yearly basis (rather than a monthly basis) and get a 10% – 20% discount depending on which package you choose. This is great for long term customers or startups that need to plan a tight budget.

At the time of writing the yearly plans are priced as follows:

  • Solo Package: $99/year (save 10%)
  • Agency Package: $296/year (save 15%)
  • Enterprise Package: $855/year (save 20%)

We hope these new pricing options will help make WP Updates even easier to adopt for all your automatic updating needs.

New Reports Pages

Today we’ve pushed live a nice new addition to our web app. Users that are on paid subscription plans can now see two new reports pages, a Downloads Report and a Site Report.

In the Downloads Report you can see

  • A graph visualising downloads for your themes/plugins for the last 30 days.
  • A downloads summary table showing your total theme/plugin downloads for the last 30 days, lasy year and all time.
  • A detailed breakdown of all your themes & plugins and exactly how many downloads each version has received.

In the Sites Report you can see

  • A list of the last 100 downloads for your themes/plugins showing the URL of the site that download them, which theme/plugin was downloaded, when it was downloaded and what version of WordPress the site was using.
  • A breakdown of what version of WordPress the sites have been using for the last 100 downloads of your themes/plugins.

We hope these reports provide a crucial insight into how your customers are using your automatic updates so you can better serve their needs.

Small Updates

We’ve just pushed some small updates live including:

  • Added auto formatting to plugin description and changelogs.
  • Fixed incorrect plugin size on Dashboard.
  • Changed the “Login/Sign Up” links on the main site to “Dashboard” when logged in.
  • You can now download version files from the Dashboard.