WC_Admin_Notices::redirect_download_method_notice()public staticWC 4.0

Notice about Redirect-Only download method.

Method of the class: WC_Admin_Notices{}

Hooks from the method

Return

null. Nothing (null).

Usage

$result = WC_Admin_Notices::redirect_download_method_notice();

Changelog

Since 4.0 Introduced.

WC_Admin_Notices::redirect_download_method_notice() code WC 8.9.0

public static function redirect_download_method_notice() {
	if ( apply_filters( 'woocommerce_hide_redirect_method_nag', get_user_meta( get_current_user_id(), 'dismissed_redirect_download_method_notice', true ) ) ) {
		self::remove_notice( 'redirect_download_method' );
		return;
	}

	include __DIR__ . '/views/html-notice-redirect-only-download.php';
}