wpovernight / woocommerce-pdf-invoices-packing-slips

Create, print & automatically email PDF invoices & packing slips for WooCommerce orders.
https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/
Other
100 stars 45 forks source link

New: filter `wpo_wcpdf_process_danger_zone_tools_date_type` #731

Closed alexmigf closed 4 months ago

alexmigf commented 4 months ago

With this filter you can alter the date type, for example to date_paid:

add_filter( 'wpo_wcpdf_process_danger_zone_tools_date_type', function( $date_type, $request ) {
    return 'date_paid';
}, 10, 2 );

Following this forum message: https://wordpress.org/support/topic/renumber-existing-documents-not-working/#post-17445160