Automattic\WooCommerce\Internal\Admin
SiteHealth::uses_redirect_download_method
Check whether downloadable products use the "Redirect only" download method.
Method of the class: SiteHealth{}
No Hooks.
Returns
bool.
Usage
// private - for code of main (parent) class only $result = $this->uses_redirect_download_method(): bool;
SiteHealth::uses_redirect_download_method() SiteHealth::uses redirect download method code WC 11.3.0
private function uses_redirect_download_method(): bool {
return 'redirect' === get_option( 'woocommerce_file_download_method', 'force' );
}