WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Ahaenor
    Member
    Posted 1 year ago #

    Hello!

    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.

    http://wordpress.org/extend/plugins/easy-digital-downloads/

  2. 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
    Member
    Posted 1 year ago #

    Ok, thanks again.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.