{"id":1146,"date":"2022-07-09T22:51:33","date_gmt":"2022-07-10T03:51:33","guid":{"rendered":"https:\/\/easydigitaldownloads.com\/development\/?p=1146"},"modified":"2022-07-09T22:51:34","modified_gmt":"2022-07-10T03:51:34","slug":"easy-digital-downloads-3-0-release-update","status":"publish","type":"post","link":"https:\/\/easydigitaldownloads.com\/development\/2022\/07\/09\/easy-digital-downloads-3-0-release-update\/","title":{"rendered":"Easy Digital Downloads 3.0 &#8211; Release Update"},"content":{"rendered":"\n<p>Well the time has arrived! We are tagging our final release candidate for EDD 3.0. Many of you have been following along on our GitHub repository over the last several months, helping test and finding things that need to be addressed. We&#8217;re very thankful for your help getting to this point. <\/p>\n\n\n\n<p>As we approach the final release date of <strong>July 13th, 2022<\/strong> here are the changes since the last major tag we gave you all.<\/p>\n\n\n\n<p>There have been a significant number of bug fixes, but we wanted to call attention to some of the larger changes that might pose an issue for developers as they integrate with EDD.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Reporting Changes<\/h2>\n\n\n\n<p>We&#8217;ve made a few changes related to the reports to help give store owners an actionable set of information on the &#8216;Dashboard&#8217; of reports. Many of these changes came after we&#8217;ve had a chance to use Easy Digital Downloads 3.0 on our own site, for our daily business operations.<\/p>\n\n\n\n<p>The first thing you&#8217;ll notice is that we&#8217;ve consolidated some of the &#8217;tiles&#8217;. We reduced the number of tiles in this Dashboard to make the overall view much more useful.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/easydigitaldownloads.com\/development\/files\/2022\/07\/Screen-Shot-2022-07-07-at-2.15.04-PM-1024x352.png\" alt=\"\" class=\"wp-image-1147\" width=\"840\" height=\"288\" srcset=\"https:\/\/easydigitaldownloads.com\/development\/files\/2022\/07\/Screen-Shot-2022-07-07-at-2.15.04-PM-1024x352.png 1024w, https:\/\/easydigitaldownloads.com\/development\/files\/2022\/07\/Screen-Shot-2022-07-07-at-2.15.04-PM-300x103.png 300w, https:\/\/easydigitaldownloads.com\/development\/files\/2022\/07\/Screen-Shot-2022-07-07-at-2.15.04-PM-768x264.png 768w, https:\/\/easydigitaldownloads.com\/development\/files\/2022\/07\/Screen-Shot-2022-07-07-at-2.15.04-PM-1536x527.png 1536w, https:\/\/easydigitaldownloads.com\/development\/files\/2022\/07\/Screen-Shot-2022-07-07-at-2.15.04-PM-2048x703.png 2048w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><figcaption><em>Updated Reports Dashboard tiles with improved styles for relational data.<\/em><\/figcaption><\/figure>\n\n\n\n<p>We&#8217;ve also been focused on fixing some issues around reporting with Timezones. As of EDD 3.0 all dates recorded in the database are in UTC. By doing this we gave ourselves a point of reference, so that we can always show the store&#8217;s reports based on the Timezone setting defined in the general WordPress settings.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Order status helper functions<\/h2>\n\n\n\n<p>As we started focusing on not just reporting on Gross and Net stats, we also found it necessary to define some &#8216;grouped&#8217; order status keys. The following functions are helper functions to get specific order status that should be grouped. Each of these functions also contains a similar filter to allow extensions and customizations to add their own statuses.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>edd_get_gross_order_statuses()<\/code><\/pre>\n\n\n\n<p>Returns an array of order status keys that should be used when wanting orders that should be considered part of a &#8216;gross&#8217; report.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>edd_get_net_order_statuses()<\/code><\/pre>\n\n\n\n<p>Returns an array of order status keys that should be used when wanting orders that should be considered part of a &#8216;net&#8217; report.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>edd_recoverable_order_statuses()<\/code><\/pre>\n\n\n\n<p>Returns an array of order status keys that can be used in the core payment recovery feature.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>edd_get_complete_order_statuses()<\/code><\/pre>\n\n\n\n<p>Returns an array of order status keys that are considered &#8216;complete&#8217;. This means they have hit the end of any automated purchase process and no further action needs to be taken at this time.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>edd_get_incomplete_order_statuses()<\/code><\/pre>\n\n\n\n<p>Returns an array of order status keys that are incomplete. This includes things like pending, abandoned, processing, failed or cancelled.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>edd_get_refundable_order_statuses()<\/code><\/pre>\n\n\n\n<p>Returns an array of order status keys that can be refunded.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<pre class=\"wp-block-code\"><code>edd_get_deliverable_order_item_statuses()<\/code><\/pre>\n\n\n\n<p>Returns an array of order item status keys that should be considered when delivering files. Note that in EDD 3.0, deliverability should be handled at the individual order item level, since one order can contain multiple items with different statuses.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Enabled block editor on Download post type<\/h2>\n\n\n\n<p>The download custom post type is now available in the REST API, so your product pages can now be edited with the block editor.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Language files removed<\/h2>\n\n\n\n<p>We&#8217;ve removed all of our translation files from our package, in order to rely on the WordPress Translation community. We found a number of translation files that were out of date and causing fatal errors due to being incorrectly translated, so we felt it was best to remove them from our plugin entirely, and allow them to be downloaded from translate.wordpress.org.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">On-the-fly Backwards Compatibility<\/h2>\n\n\n\n<p>We know that keeping stores accepting payments is important, and from day one of EDD 3.0&#8217;s development, we wanted to allow new purchases to be able to be completed, while the site was migrating existing payment data.<\/p>\n\n\n\n<p>We&#8217;ve taken this a step further, so that when renewals are processed with Recurring Payments or licenses keys are interacted with (checking for updates, activating, deactivating, or checking), that these actions complete successfully with a &#8216;semi-backwards compatible&#8217; layer of EDD that ensures critical functionality will still work.<\/p>\n\n\n\n<p>We&#8217;ve also added the <code>edd_v3_migration_pending<\/code> option so that you can identify when a migration is either pending start or running. For instance, you may have seen this on our site a few weeks back while we were running this migration ourselves:<br><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"184\" src=\"https:\/\/easydigitaldownloads.com\/development\/files\/2022\/07\/image-1024x184.png\" alt=\"\" class=\"wp-image-1157\" srcset=\"https:\/\/easydigitaldownloads.com\/development\/files\/2022\/07\/image-1024x184.png 1024w, https:\/\/easydigitaldownloads.com\/development\/files\/2022\/07\/image-300x54.png 300w, https:\/\/easydigitaldownloads.com\/development\/files\/2022\/07\/image-768x138.png 768w, https:\/\/easydigitaldownloads.com\/development\/files\/2022\/07\/image.png 1500w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>We displayed this message to users during the migration, using the <code>edd_v3_migration_pending<\/code> option.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Other Bug Fixes and Changes<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>Order details will now always show quantities for items.<\/li><li>Improved performance getting cart total, by making tax calculations more efficient.<\/li><li>Added a new Currency class, to help support multi-currency stores.<\/li><li>Filters were added to the discount list table.<\/li><li>Added a new <code>edd_is_cart_empty()<\/code> helper function.<\/li><li>Improved performance of status calculations for downloads.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">So what is next?<\/h2>\n\n\n\n<p>Well, now that we&#8217;ve tagged our final release, we&#8217;re going to be pushing this to WordPress.org as a &#8216;development version&#8217; in order to allow translators to start translating all the new strings.<\/p>\n\n\n\n<p>Shortly after that we will tag our final release on WordPress.org and we&#8217;ll go live on <strong>July 13, 2022<\/strong>!<\/p>\n\n\n\n<p>As always with large releases like this, especially ones that are moving data around, we would suggest making backups of your site and database prior to any changes being made, as well as testing this out on a staging or local copy of your site first! We&#8217;ve tested it extensively and are already running this on our site, but it is always good practice to try it in staging first.<\/p>\n\n\n\n<p>Thanks for your help and support!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well the time has arrived! We are tagging our final release candidate for EDD 3.0. Many of you have been following along on our GitHub repository over the last several months, helping test and finding&#8230;<\/p>\n<p class=\"continue-reading\"><a class=\"more-link\" href=\"https:\/\/easydigitaldownloads.com\/development\/2022\/07\/09\/easy-digital-downloads-3-0-release-update\/\">Continue reading &rarr;<\/a><\/p>\n","protected":false},"author":650,"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":[4],"tags":[17],"class_list":["post-1146","post","type-post","status-publish","format-standard","hentry","category-core","tag-3dd"],"_links":{"self":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts\/1146","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\/650"}],"replies":[{"embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/comments?post=1146"}],"version-history":[{"count":10,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts\/1146\/revisions"}],"predecessor-version":[{"id":1170,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/posts\/1146\/revisions\/1170"}],"wp:attachment":[{"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/media?parent=1146"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/categories?post=1146"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easydigitaldownloads.com\/development\/wp-json\/wp\/v2\/tags?post=1146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}