# fluent-booking/trunk/boot/globals_dev.php

Fluent Booking – The Ultimate Appointments Scheduling, Events Booking, Events Calendar Solution, version trunk. 31 lines.

- Page: https://pluginprobe.com/plugins/fluent-booking/trunk/code/boot/globals_dev.php
- Raw: https://pluginprobe.com/plugins/fluent-booking/trunk/raw/boot/globals_dev.php
- Modified: 2025-11-27T14:35:12+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-booking/trunk/code/boot/globals_dev.php#L10-L20`.

```php
<?php

defined( 'ABSPATH' ) || exit;

/**
 * Enable Query Log
 */
if (!function_exists('fluentbooking_eql')) {
    function fluentbooking_eql()
    {
        defined('SAVEQUERIES') || define('SAVEQUERIES', true); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedConstantFound
    }
}

/**
 * Get Query Log
 */
if (!function_exists('fluentbooking_gql')) {
    function fluentbooking_gql()
    {
        $result = [];
        foreach ((array)$GLOBALS['wpdb']->queries as $key => $query) {
            $result[++$key] = array_combine([
                'query', 'execution_time'
            ], array_slice($query, 0, 2));
        }
        return $result;
    }
}


```
