Initial commit

This commit is contained in:
gustavooth
2026-07-23 22:56:30 -03:00
commit 22a1006598
1816 changed files with 410742 additions and 0 deletions
@@ -0,0 +1,28 @@
<?php
/**
* Enable Query Log
*/
if (!function_exists('fluentcrm_eql')) {
function fluentcrm_eql()
{
defined('SAVEQUERIES') || define('SAVEQUERIES', true);
}
}
/**
* Get Query Log
*/
if (!function_exists('fluentcrm_gql')) {
function fluentcrm_gql()
{
$result = [];
foreach ((array)$GLOBALS['wpdb']->queries as $key => $query) {
$result[++$key] = array_combine([
'query', 'execution_time'
], array_slice($query, 0, 2));
}
return $result;
}
}