WordPress at Your Fingertips
function is not described

WC_Admin_Notices::add_redirect_download_method_notice() public WC 1.0

Add notice about Redirect-only download method, nudging user to switch to a different method instead.

{} It's a method of the class: WC_Admin_Notices{}

No Hooks.

Return

null. Nothing.

Usage

$result = WC_Admin_Notices::add_redirect_download_method_notice();

Code of WC_Admin_Notices::add_redirect_download_method_notice() WC 5.9.0

public static function add_redirect_download_method_notice() {
	if ( 'redirect' === get_option( 'woocommerce_file_download_method' ) ) {
		self::add_notice( 'redirect_download_method' );
	} else {
		self::remove_notice( 'redirect_download_method' );
	}
}