WordPress at Your Fingertips
function is not described

WC_Product_Download::set_previous_hash() public WC 1.0

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

Set previous_hash.

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

No Hooks.

Return

null. Nothing.

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.

Code of WC_Product_Download::set_previous_hash() WC 5.6.0

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