WC_Admin_Notices::add_redirect_download_method_notice()public staticWC 1.0

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

Метод класса: WC_Admin_Notices{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$result = WC_Admin_Notices::add_redirect_download_method_notice();

Код WC_Admin_Notices::add_redirect_download_method_notice() WC 7.1.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' );
	}
}