We have been working hard recently making WP Updates better than ever, and today we have pushed a large update live!
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.
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.
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.
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.