Skip to content

Commit

Permalink
feat: update deacrtivation modal content
Browse files Browse the repository at this point in the history
  • Loading branch information
ravinderk committed Sep 22, 2023
1 parent bb7df21 commit 0ede961
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions includes/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,11 @@ static function(){
'admin_footer',
static function () {
printf(
'<div id="my-modal" style="display:none;">%s</div>',
esc_html__( 'This is a demo modal', 'distributor' )
'<div id="my-modal" style="display:none;"><p>%1$s</p><p>%2$s</p><p><code>%3$s</code></p><p>%4$s</p></div>',
esc_html__( 'Would you like to delete all Distributor data?', 'distributor'),

Check failure on line 236 in includes/bootstrap.php

View workflow job for this annotation

GitHub Actions / phpcs

Expected 1 spaces before closing parenthesis; 0 found
esc_html__( 'By default the database entries are not deleted when you deactivate Distributor. If you are deleting Distributor completely from your website and want those items removed as well check, add below code to wp-config.php .', 'distributor' ),
'define(\'DT_REMOVE_ALL_DATA\', true)',
esc_html__( 'Note: This will permanently delete all Distributor data from your database. After deleting Distributor, you can remove code.', 'distributor' )
);
}
);
Expand All @@ -248,6 +251,7 @@ static function () {
$("#my-modal").dialog({
modal: true,
title: "$modal_title",
width: 550,
buttons: [
{
text: "$modal_button_title_cancel",
Expand Down

0 comments on commit 0ede961

Please sign in to comment.