Easy Digital Downloads
[resolved] edd_get_download_sales_log() is deprecated (3 posts)

  1. Ahaenor
    Posted 3 years ago #


    In our projects we've replaced Downloads/Sales Log metabox with our own, that works slightly different. But it's still using edd_get_download_sales_log() function.

    Recently, i've started to see notice:

    Notice: edd_get_download_sales_log version is deprecated since Easy Digital Downloads 1.3.4. There are no alternatives. in /project/folder/wp-content/plugins/easy-digital-downloads/includes/misc-functions.php on line 710

    Is there really no other, more correct way to get sales log yet? If no, it's ok, i'm just wondering how i can improve our EDD using code.


  2. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 3 years ago #

    You can use this instead:

    global $edd_logs;
    $logs = $edd_logs->get_connected_logs( $download_id, 'sale' );

    This will return an array of post objects, just like WP_Query.

  3. Ahaenor
    Posted 3 years ago #

    Ok, thanks again.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Easy Digital Downloads
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.