Title: Delete fields
Last modified: December 15, 2020

---

# Delete fields

 *  Resolved [xt](https://wordpress.org/support/users/xueting/)
 * (@xueting)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/delete-fields-2/)
 * Hello,
 * How can I remove the fields of other plugin such as order type and delivery date
   which appearing under “Total” column? Which file needs to be edited?
    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [xt](https://wordpress.org/support/users/xueting/)
 * (@xueting)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/delete-fields-2/#post-13790445)
 * In addition, how can I reset my invoice sequential unique identifier number daily?
   Because there is only an option to reset the number yearly. Do I need to edit
   coding scheme?
 * Thank you.
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/delete-fields-2/#post-13790893)
 * Hello [@xueting](https://wordpress.org/support/users/xueting/)
    These are not
   default fields from our plugin, I suspect they’re being added by third party 
   plugins or that you’re possibly using another plugin. Could you post a screenshot
   of what you are referring to (you can use imgbb.com if you need somewhere to 
   upload the image).
 *  Thread Starter [xt](https://wordpress.org/support/users/xueting/)
 * (@xueting)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/delete-fields-2/#post-13795337)
 * Hello Ewout,
 * Thank you for your fast response.
 * The problem has been solved by removing third party plugin. However, I am trying
   to reset the invoice number daily. I found the following code snippet:
 * add_action( ‘wpo_wcpdf_before_sequential_number_increment’, ‘wpo_wcpdf_reset_invoice_number_monthly’,
   10, 3 );
    function wpo_wcpdf_reset_invoice_number_monthly( $number_store, $order_id,
   $date ) { $current_month = date(‘n’); $last_number_month = $number_store->get_last_date(‘
   n’); // check if we need to reset if ( $current_month != $last_number_month ){
   $number_store->set_next( 1 ); } }
 * How do I change the code snippet to make it reset the invoice number daily? I
   changed every word ‘monthly’ to ‘daily’ but it seems like it is not the correct
   way…
 *  Plugin Contributor [kluver](https://wordpress.org/support/users/kluver/)
 * (@kluver)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/delete-fields-2/#post-13796494)
 * Hi [@xueting](https://wordpress.org/support/users/xueting/),
 * The following code snippet should reset the invoice number daily:
 *     ```
       add_action( 'wpo_wcpdf_before_sequential_number_increment', 'wpo_wcpdf_reset_invoice_number_daily', 10, 3 );
       function wpo_wcpdf_reset_invoice_number_daily( $number_store, $order_id, $date ) {
       	if ( $number_store->store_name == 'invoice_number' ) {
       		$current_day = date('j');
       		$last_number_day = $number_store->get_last_date('j');
       		// check if we need to reset
       		if ( $current_day != $last_number_day ) {
       			$number_store->set_next( 1 );
       		}
       	}
       }
       ```
   
 * This code snippet should be added to the functions.php of your child theme or
   via a plugin like Code Snippets. If you haven’t worked with code snippets (actions/
   filters) or functions.php before, read this guide: [How to use filters](https://docs.wpovernight.com/general/how-to-use-filters/)
 *  Thread Starter [xt](https://wordpress.org/support/users/xueting/)
 * (@xueting)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/delete-fields-2/#post-13800447)
 * Hi kluver,
 * Thank you for the help, I have solved my problem now 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Delete fields’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [xt](https://wordpress.org/support/users/xueting/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/delete-fields-2/#post-13800447)
 * Status: resolved