# fluent-cart/1.6.4/boot/globals_dev.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.6.4. 44 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/boot/globals_dev.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.4/raw/boot/globals_dev.php
- Modified: 2025-11-20T13:11:16+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-cart/1.6.4/code/boot/globals_dev.php#L10-L20`.

```php
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
<?php

/**
 * Enable Query Log
 */
if (!function_exists('fluentcart_eql')) {
    function fluentcart_eql()
    {
        defined('SAVEQUERIES') || define('SAVEQUERIES', true);
    }
}

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

if (!function_exists('dd')) {

    function dd()
    {

        foreach (func_get_args() as $arg) {
            echo "<pre>";
            // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_print_r
            print_r($arg);
            echo "</pre>";
        }
        die();
    }
}

```
