WC_Log_Handler_File::get_log_file_path()public staticWC 1.0

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 8.7.0

public static function get_log_file_path( $handle ) {
	if ( function_exists( 'wp_hash' ) ) {
		return trailingslashit( WC_LOG_DIR ) . 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;
	}
}