Automattic\WooCommerce\Internal\Admin\Logging\FileV2

File::sanitize_sourcepublic staticWC 1.0

Sanitize the source property of a log file.

Method of the class: File{}

No Hooks.

Returns

String.

Usage

$result = File::sanitize_source( $source ): string;
$source(string) (required)
The source of the log entries contained in the file.

File::sanitize_source() code WC 10.9.1

public static function sanitize_source( string $source ): string {
	return sanitize_file_name( $source );
}