WC_Product_Download::set_previous_hashpublicWC 1.0

Deprecated since 3.3.0 No longer using filename based hashing to keep track of files.. It is no longer supported and may be removed in future releases. It is recommended to replace this function with the same one.

Set previous_hash.

Method of the class: WC_Product_Download{}

No Hooks.

Returns

null. Nothing (null).

Usage

$WC_Product_Download = new WC_Product_Download();
$WC_Product_Download->set_previous_hash( $value );
$value(string) (required)
Previous hash.

Changelog

Deprecated since 3.3.0 No longer using filename based hashing to keep track of files.

WC_Product_Download::set_previous_hash() code WC 10.6.2

public function set_previous_hash( $value ) {
	wc_deprecated_function( __FUNCTION__, '3.3' );
	$this->data['previous_hash'] = wc_clean( $value );
}