WC_Log_Handler_File::get_log_file_path
Get a log file path.
Метод класса: WC_Log_Handler_File{}
Хуков нет.
Возвращает
true|false|Строку. The log file path or false if path cannot be determined.
Использование
$result = WC_Log_Handler_File::get_log_file_path( $handle );
- $handle(строка) (обязательный)
- Log name.
Код WC_Log_Handler_File::get_log_file_path() WC Log Handler File::get log file path WC 11.0.1
public static function get_log_file_path( $handle ) {
$log_directory = LoggingUtil::get_log_directory();
if ( function_exists( 'wp_hash' ) ) {
return trailingslashit( $log_directory ) . self::get_log_file_name( $handle );
} else {
wc_doing_it_wrong( __METHOD__, __( 'This method should not be called before plugins_loaded.', 'woocommerce' ), '3.0' );
return false;
}
}