Automattic\WooCommerce\Internal\Admin\Logging\FileV2
File::sanitize_source
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() File::sanitize source code WC 10.9.1
public static function sanitize_source( string $source ): string {
return sanitize_file_name( $source );
}