Hi @olessol
Do you perhaps have one of our paid extensions, or a third-party plugin that integrates with our plugin?
I found this obsolete code in a file: wp-content/plugins/woocommerce-pdf-invoices-packing-slips/wpo-ips-functions.php
Here is a part of the code. Lines 116-124
function wcpdf_get_invoice( $order, $init = false ) {
wcpdf_deprecated_function( __FUNCTION__, ‘4.6.3’, ‘wcpdf_get_document( \’invoice\’, $order, $init )’ );
return wcpdf_get_document( ‘invoice’, $order, $init );
}
function wcpdf_get_packing_slip( $order, $init = false ) {
wcpdf_deprecated_function( __FUNCTION__, ‘4.6.3’, ‘wcpdf_get_document( \’packing-slip\’, $order, $init )’ );
return wcpdf_get_document( ‘packing-slip’, $order, $init );
}
No such code was found in other files.
I saw this warning in the Woocommerce logs:
Viewing log file wpo-wcpdf-2025-08-26
2025-08-26T10:38:12+00:00Warning The wcpdf_get_packing_slip function is deprecated since version 4.6.3. Replace with wcpdf_get_document( ‘packing-slip’, $order, $init ).
2025-08-26T10:38:12+00:00Warning The wcpdf_get_invoice function is deprecated since version 4.6.3. Replace with wcpdf_get_document( ‘invoice’, $order, $init ).
2025-08-26T10:38:18+00:00Warning The wcpdf_get_packing_slip function is deprecated since version 4.6.3. Replace with wcpdf_get_document( ‘packing-slip’, $order, $init ).
2025-08-26T10:38:18+00:00Warning The wcpdf_get_invoice function is deprecated since version 4.6.3. Replace with wcpdf_get_document( ‘invoice’, $order, $init ).
That code is correct. The notice is simply informing you that you should use wcpdf_get_document() going forward. Most likely, another plugin or a custom code snippet is still using the old functions. If you’re unsure which one is causing it, please contact us.