WC_Product_Download::set_previous_hash()
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.
Method of the class: WC_Product_Download{}
No Hooks.
Return
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() WC Product Download::set previous hash code WC 8.7.0
public function set_previous_hash( $value ) { wc_deprecated_function( __FUNCTION__, '3.3' ); $this->data['previous_hash'] = wc_clean( $value ); }