Wordpress plugins
Safe Staging

Safe Staging

Version : 0.2.3
Tested up to : 5.1
Number of download : 9
Author : ryanshoover
Average rating : 5 / 5 on 1 votes 1 votes, 5 avg.rating

Screenshots

Safe Staging
Safe Staging
Safe Staging
Safe Staging

Simply define your production url in settings and copy your site to your staging instance without fear. The staging site won’t send any emails and won’t process any payments. Why should I use the plugin If you host your site on a managed host that provides a staging instance (WP Engine, Siteground, and others), or if you run a staging instance for a self-hosted website, you may have found that WordPress and WooCommerce will automatically send emails and process payments from the staging site. Whenever you clone your production site to your staging site, you would normally need to complete a number of steps to make your site “safe for staging.” Instead, install this plugin in production, set the production URL, and safely copy your site to and from staging. No other steps needed! Features on Staging A “noindex” tag is added to all pages. Your staging site won’t show up in Google. WordPress emails are stopped. The site won’t send any emails except for the password reset email. Please note, this feature may not be compatible with plugins that offload email to a 3rd party service. The WooCommerce checkout page has a warning message notifying the visitor they are viewing the staging site. WooCommerce payment gateways are suspended. Bank account transfer, Cash on Delivery and Check are left enabled. Stripe is automatically put into test mode. WooCommerce Subscriptions is put into staging mode. Hooks and Filters `php /** * Change whether Safe Staging thinks the current site * is the production site. * * @param bool $is_prod Is this the production site. */ apply_filters( ‘safe_staging_is_production’, $is_prod ); ` `php /** * Determine whether a particular email should be sent. * * @param bool $whitelisted Should the email actually send. * @param object $this Instance of the Fake PHPMailer class. */ apply_filters( ‘safe_staging_is_whitelist_email’, $whitelisted, $this ); ` `php /** * Change the warning message that gets displayed on the checkout page * of staging sites. * * @param string $notice HTML of the message to be shown. */ apply_filters( ‘safe_staging_checkout_notice’, $notice ); `

Download now