_partial
1 month ago
aios-salt-postfix-enabled.php
1 year ago
analytics-consent-failed.php
1 year ago
analytics-consent-refused.php
1 year ago
analytics-modal.php
2 months ago
backup-plugins-notice.php
8 months ago
beta.php
1 year ago
cache-directory-permission-problem.php
1 year ago
cli-integration-notice.php
1 week ago
cron-warning-notice.php
3 months ago
directory-listing-could-not-be-prevented.php
8 months ago
disabled-items-notice.php
1 year ago
disabled-optimizer-notice.php
1 year ago
elementor-cloud-notice.php
5 months ago
logs-directory-permission-problem.php
1 year ago
low-memory-limit.php
1 year ago
mu-plugin-directory-permission-problem.php
1 year ago
next-gen-engine-notice.php
1 month ago
no-db-prefix-notice.php
1 year ago
object-cache-skipped.php
1 year ago
outdated-wp-staging-hooks.php
1 year ago
outdated-wp-staging-version.php
1 year ago
pro-crons-notice.php
1 year ago
review-prompt-handlers.php
1 month ago
review-prompt-modal.php
1 month ago
settings_option_corrupt.php
1 year ago
staging-directory-permission-problem.php
1 week ago
staging-symlink-enabled-notice.php
10 months ago
table-tmp-prefix-conflict-notice.php
1 year ago
transient.php
1 year ago
uploads-outside-wp-root.php
1 year ago
vars-directory-permission-problem.php
1 year ago
wordfence-userini-renamed.php
6 months ago
wp-options-missing-pk.php
6 months ago
wp-version-compat-notice.php
5 months ago
wpe-permalink-issue-notice.php
1 year ago
wrong-scheme.php
1 year ago
pro-crons-notice.php
44 lines
| 1 | <div class="notice notice-warning" id="wpstg-pro-crons-notice"> |
| 2 | <p> |
| 3 | <strong><?php esc_html_e('WP STAGING', 'wp-staging'); ?></strong> <br> |
| 4 | <?php esc_html_e('You downgraded WP Staging Pro to the WP Staging free version. To create a scheduled backup plan with WP Staging free, please click on the confirm button below.', 'wp-staging') ?> <br> |
| 5 | <?php esc_html_e('This will delete all existing backup plans created with the pro version and you can setup one scheduled backup that runs once per day.', 'wp-staging') ?> |
| 6 | <a href="javascript:void(0);" id="wpstg-link-clean-pro-crons" title="<?php esc_html_e('Confirm', 'wp-staging') ?>"> |
| 7 | <strong><?php esc_html_e('CONFIRM', 'wp-staging') ?></strong> |
| 8 | </a> |
| 9 | </p> |
| 10 | </div> |
| 11 | <script> |
| 12 | jQuery(document).ready(function ($) { |
| 13 | jQuery(document).on('click', '#wpstg-link-clean-pro-crons', function (e) { |
| 14 | e.preventDefault(); |
| 15 | jQuery.ajax({ |
| 16 | url: ajaxurl, |
| 17 | type: 'POST', |
| 18 | data: { |
| 19 | action: 'wpstg_clean_pro_crons', |
| 20 | accessToken: wpstg.accessToken, |
| 21 | nonce: wpstg.nonce, |
| 22 | }, |
| 23 | error: function error(xhr, textStatus, errorThrown) { |
| 24 | console.log(xhr.status + ' ' + xhr.statusText + '---' + textStatus); |
| 25 | console.log(textStatus); |
| 26 | alert('Unknown error. Please get in contact with us to solve it support@wp-staging.com'); |
| 27 | }, |
| 28 | success: function success(data) { |
| 29 | jQuery('#wpstg-pro-crons-notice').slideUp('fast'); |
| 30 | return true; |
| 31 | }, |
| 32 | statusCode: { |
| 33 | 404: function _() { |
| 34 | alert('Something went wrong; can\'t find ajax request URL! Please get in contact with us to solve it support@wp-staging.com'); |
| 35 | }, |
| 36 | 500: function _() { |
| 37 | alert('Something went wrong; internal server error while processing the request! Please get in contact with us to solve it support@wp-staging.com'); |
| 38 | } |
| 39 | } |
| 40 | }); |
| 41 | }); |
| 42 | }); |
| 43 | </script> |
| 44 |