diff --git a/assets/css/debug-tools.css b/assets/css/debug-tools.css index 15c0d95e2..61c0a8a5f 100644 --- a/assets/css/debug-tools.css +++ b/assets/css/debug-tools.css @@ -35,6 +35,15 @@ form#wpo-wcpdf-settings { max-width: 25rem; } +#debug-tools #nuke { + margin-top: 20px; + background-color: #fcf9e8; +} + +#debug-tools #nuke .notice { + margin: 0; +} + #document_custom_redirect_page, #document_custom_redirect_page + .description { display: none; diff --git a/includes/settings/class-wcpdf-settings-debug.php b/includes/settings/class-wcpdf-settings-debug.php index 689cbf0c8..f8e66ef32 100644 --- a/includes/settings/class-wcpdf-settings-debug.php +++ b/includes/settings/class-wcpdf-settings-debug.php @@ -59,6 +59,8 @@ public function output( $active_section ) { case 'tools': $this->process_debug_tools(); $this->display_tools(); + case 'numbers': + $this->display_numbers(); break; } } @@ -198,11 +200,39 @@ public function display_tools() { + + +
DANGER ZONE: Create a backup before using this tools, the actions they performs are irreversible!', 'woocommerce-pdf-ips-number-tools' ); ?>
+next document number setting %s to the number you want to use for the first document. ', 'woocommerce-pdf-invoices-packing-slips' ),
+ 'WooCommerce > PDF Invoices > Documents > Select document
'
+ ); ?>