Automattic\WooCommerce\Internal\Admin\Logging\FileV2
File::sanitize_source
Sanitize the source property of a log file.
Метод класса: File{}
Хуков нет.
Возвращает
Строку.
Использование
$result = File::sanitize_source( $source ): string;
- $source(строка) (обязательный)
- The source of the log entries contained in the file.
Код File::sanitize_source() File::sanitize source WC 10.7.0
public static function sanitize_source( string $source ): string {
return sanitize_file_name( $source );
}