• File: globals_dev.php
  • Full Path: /home/slvgwrnz/public_html/wp-content/plugins/wp-social-reviews/boot/globals_dev.php
  • Date Modified: 01/29/2026 11:01 AM
  • File size: 601 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
defined('ABSPATH') or die;

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

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