Support » Plugin: Easy Digital Downloads » edd_get_download_sales_log() is deprecated

  • Resolved Ahaenor



    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Pippin Williamson


    Pippin's Plugins and Plugin Reviewer

    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.

    Ok, thanks again.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘edd_get_download_sales_log() is deprecated’ is closed to new replies.