Automattic\WooCommerce\Utilities
LoggingUtil::generate_log_file_hash()
Generate a hash to use as the suffix on a log filename.
Method of the class: LoggingUtil{}
No Hooks.
Return
String
.
Usage
$result = LoggingUtil::generate_log_file_hash( $file_id ): string;
- $file_id(string) (required)
- A file ID (file basename without the hash).
LoggingUtil::generate_log_file_hash() LoggingUtil::generate log file hash code WC 9.4.2
public static function generate_log_file_hash( string $file_id ): string { return File::generate_hash( $file_id ); }