{"id":922,"date":"2020-11-02T10:34:24","date_gmt":"2020-11-02T16:34:24","guid":{"rendered":"https:\/\/easydigitaldownloads.com\/development\/?p=922"},"modified":"2020-11-02T10:34:25","modified_gmt":"2020-11-02T16:34:25","slug":"software-licensing-auto-updates","status":"publish","type":"post","link":"https:\/\/easydigitaldownloads.com\/development\/2020\/11\/02\/software-licensing-auto-updates\/","title":{"rendered":"Software Licensing 3.6.12 Supports Auto-Updates"},"content":{"rendered":"\n<p>The latest WordPress release includes a feature which will be especially noteworthy for plugin and theme authors distributing updates using our <a href=\"https:\/\/easydigitaldownloads.com\/downloads\/software-licensing\/\">Software Licensing extension<\/a>.<\/p>\n\n\n\n<p><a href=\"https:\/\/make.wordpress.org\/core\/2020\/07\/30\/recommended-usage-of-the-updates-api-to-support-the-auto-updates-ui-for-plugins-and-themes-in-wordpress-5-5\/\">WordPress 5.5 includes support for auto-updating themes and plugins.<\/a> Version 3.6.12 of Software Licensing includes updates to the plugin and theme update classes, as well as how they are implemented in our sample code, which users who want to support auto-updates will want to implement.<\/p>\n\n\n\n<p>The new versions of the update classes are:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>EDD_Theme_Updater \u2014 1.1.0<\/li><li>EDD_SL_Plugin_Updater \u2014 1.8.0<\/li><\/ul>\n\n\n\n<p>Changelog:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The theme updater class now populates the <code>no_update<\/code> property of the WordPress theme update transient<\/li><li>The plugin updater class adds <code>plugin<\/code> and <code>id<\/code> to the plugin version information which is added to the WordPress plugin update transient (the <code>no_update<\/code> property population was initially added in Software Licensing 3.6.10)<\/li><\/ul>\n\n\n\n<p>The way theme and plugin authors initialize the updater classes will also need to be updated to work with the WordPress scheduled task. Plugin authors will note that the <code>edd_sl_sample_plugin_updater<\/code> function now uses the <code>init<\/code> hook, instead of <code>admin_init<\/code>. Both this function and the comparable updater method in the <code>theme-updater-admin.php<\/code> file now include a check for whether a cron job (scheduled task) is running, as well as the user privilege level.<\/p>\n\n\n\n<p>Once you have updated your theme or plugin code to include these changes and it&#8217;s on your users&#8217; sites, they will be able to enable auto-updates.<\/p>\n\n\n\n<p>Documentation:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/docs.easydigitaldownloads.com\/article\/382-automatic-upgrades-for-wordpress-themes\">Software Licensing &#8211; Updater Implementation for WordPress Themes<\/a><\/li><li><a href=\"https:\/\/docs.easydigitaldownloads.com\/article\/383-automatic-upgrades-for-wordpress-plugins\">Software Licensing &#8211; Updater Implementation for WordPress Plugins<\/a><\/li><\/ul>\n\n\n\n<p>Valid license holders can get these new sample files from within the Downloads section of <a href=\"https:\/\/easydigitaldownloads.com\/your-account\/#tab-downloads\">your account<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The latest WordPress release includes a feature which will be especially noteworthy for plugin and theme authors distributing updates using our Software Licensing extension. WordPress 5.5 includes support for auto-updating themes and plugins. Version 3.6.12&#8230;<\/p>\n<p class=\"continue-reading\"><a class=\"more-link\" href=\"https:\/\/easydigitaldownloads.com\/development\/2020\/11\/02\/software-licensing-auto-updates\/\">Continue reading &rarr;<\/a><\/p>\n","protected":false},"author":13747,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3],"tags":[8],"class_list":["post-922","post","type-post","status-publish","format-standard","hentry","category-extensions","tag-software-licensing"],"_links":{"self":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts\/922","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/users\/13747"}],"replies":[{"embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/comments?post=922"}],"version-history":[{"count":3,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts\/922\/revisions"}],"predecessor-version":[{"id":925,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts\/922\/revisions\/925"}],"wp:attachment":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/media?parent=922"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/categories?post=922"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/tags?post=922"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}