WooCommerce Code Reference


Source code

 * Admin View: Notice - Redirect only download method is selected.
 * @package WooCommerce\Admin\Notices

defined( 'ABSPATH' ) || exit;

<div class="updated woocommerce-message">
	<a class="woocommerce-message-close notice-dismiss" href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'wc-hide-notice', 'redirect_download_method' ), 'woocommerce_hide_notices_nonce', '_wc_notice_nonce' ) ); ?>"><?php esc_html_e( 'Dismiss', 'woocommerce' ); ?></a>
		echo wp_kses_post(
				/* translators: %s: Link to settings page. */
				__( 'Your store is configured to serve digital products using "Redirect only" method. This method is deprecated, <a href="%s">please switch to  a different method instead.</a><br><em>If you use a remote server for downloadable files (such as Google Drive, Dropbox, Amazon S3), the right method will automatically be used, so select any of the other options to make this notice go away.</em>', 'woocommerce' ),
						'page'    => 'wc-settings',
						'tab'     => 'products',
						'section' => 'downloadable',
					admin_url( 'admin.php' )