WordPress at Your Fingertips
function is not described

WC_Admin_Notices::redirect_download_method_notice() public WC 4.0

Notice about Redirect-Only download method.

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

Hooks from the method

Return

null. Nothing.

Usage

$result = WC_Admin_Notices::redirect_download_method_notice();

Changelog

Since 4.0 Introduced.

Code of WC_Admin_Notices::redirect_download_method_notice() WC 5.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 dirname( __FILE__ ) . '/views/html-notice-redirect-only-download.php';
}