PluginProbe ʕ •ᴥ•ʔ
WP STAGING – WordPress Backups, Restore, Migration & Clone / 4.11.0
WP STAGING – WordPress Backups, Restore, Migration & Clone v4.11.0
4.11.0 4.10.0 4.9.5 4.9.4 4.9.3 4.9.2 4.9.1 4.9.0 4.8.1 trunk 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.10.0 3.2.0 3.3.1 3.3.2 3.3.3 3.4.1 3.4.3 3.5.0 3.6.0 3.7.1 3.8.0 3.8.1 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 3.8.7 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4 4.0.0 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.2.0 4.2.1 4.3.0 4.3.1 4.3.2 4.4.0 4.5.0 4.6.0 4.7.0 4.7.1 4.7.2 4.7.3 4.8.0
wp-staging / views / notices / review-prompt-modal.php
wp-staging / views / notices Last commit date
_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 1 week 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 day ago cron-warning-notice.php 1 day 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 2 weeks ago staging-symlink-enabled-notice.php 11 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 7 months ago wp-options-missing-pk.php 7 months ago wp-version-compat-notice.php 5 months ago wpe-permalink-issue-notice.php 1 year ago wrong-scheme.php 1 year ago
review-prompt-modal.php
44 lines
1 <?php
2
3 /**
4 * Shared, success-based review block for the backup/staging completion modals.
5 *
6 * Renders nothing unless this is the Free version and the shared review state
7 * still allows asking (not permanently dismissed, not snoozed). The caller wraps
8 * it in a hidden container whose JS injects it into the success modal and reveals
9 * it via the `.show` class, so the ask is always tied to a completed operation
10 * and never appears as loose text on the dashboard.
11 *
12 * Actions reuse the shared selectors wired by review-prompt-handlers.php and the
13 * same wpstg_rating state, so a "Maybe Later" / "Don't Ask Again" here silences
14 * the review across both the staging and backup flows.
15 *
16 * @see \WPStaging\Basic\Notices\RatingNotice::isReviewPromptEligible
17 */
18
19 use WPStaging\Basic\Notices\RatingNotice;
20 use WPStaging\Core\WPStaging;
21
22 if (WPStaging::isPro() || !WPStaging::make(RatingNotice::class)->isReviewPromptEligible()) {
23 return;
24 }
25 ?>
26 <div class="wpstg-rate-us wpstg_fivestar">
27 <div class="wpstg-rate-us-inner">
28 <p class="wpstg-rate-us-title">
29 <strong><?php esc_html_e('WP STAGING helped you create a safer workflow?', 'wp-staging'); ?></strong>
30 </p>
31 <p class="wpstg-rate-us-body">
32 <?php esc_html_e('If WP STAGING saved you time, an honest review on WordPress.org would help us a lot.', 'wp-staging'); ?>
33 </p>
34 <div class="wpstg-rate-us-action">
35 <a href="https://wordpress.org/support/plugin/wp-staging/reviews/#new-post"
36 target="_blank"
37 rel="noopener noreferrer"
38 class="wpstg-button wpstg-blue-primary wpstg-leave-review"><?php esc_html_e('Leave a Review', 'wp-staging'); ?></a>
39 <a href="javascript:void(0);" class="wpstg_rate_later wpstg-rate-us-secondary"><?php esc_html_e('Maybe Later', 'wp-staging'); ?></a>
40 <a href="javascript:void(0);" class="wpstg_hide_rating wpstg-rate-us-secondary"><?php esc_html_e('Don\'t Ask Again', 'wp-staging'); ?></a>
41 </div>
42 </div>
43 </div>
44