• Resolved lennycatena

    (@lennycatena)


    Hi ,

    An old question asked how to change the invoice name to a receipt.
    You sent me this solution:

    add_filter( ‘wpo_wcpdf_invoice_title’, ‘wpo_wcpdf_invoice_title’, 10, 2 );
    function wpo_wcpdf_invoice_title ( $title, $document ) {
    $title = ‘Ricevuta’;
    return $title;
    }

    But with query monitor:

    “Hook wpo_wcpdf_invoice_title is deprecated since version 3.8.7! Use wpo_wcpdf_document_title instead.”

    What can we do?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor dwpriv

    (@dwpriv)

    Thread Starter lennycatena

    (@lennycatena)

    Perfect
    And for this

    Hook woocommerce_resend_order_emails_available is deprecated since version 3.5.7! Use wpo_wcpdf_resend_order_emails_available instead.-

    you are the best!

    Thread Starter lennycatena

    (@lennycatena)

    Hi,

    for this problem?
    Hook woocommerce_resend_order_emails_available is deprecated since version 3.5.7! Use wpo_wcpdf_resend_order_emails_available instead.-

    thanks

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @lennycatena,

    As stated in the notice, the new filter is wpo_wcpdf_resend_order_emails_available, which receive the IDs from the available emails and the order ID as parameters (source).

    Here is an example:

    add_filter( 'wpo_wcpdf_resend_order_emails_available', function( $email_ids, $order_id ) {
    // Your logic goes here!
    return $email_ids;
    }, 10, 2 );
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.