/var/www/html_fr/wp-content/plugins/fluent-smtp/app/Services/DB/wpfluent.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php defined('ABSPATH') or die;


if (! 
function_exists('FluentSmtpDb')) {
    
/**
     * @return \FluentMail\App\Services\DB\QueryBuilder\QueryBuilderHandler
     */
    
function FluentSmtpDb()
    {
        static 
$FluentSmtpDb;

        if (! 
$FluentSmtpDb) {
            global 
$wpdb;

            
$connection = new \FluentMail\App\Services\DB\Connection($wpdb, ['prefix' => $wpdb->prefix]);

            
$FluentSmtpDb = new \FluentMail\App\Services\DB\QueryBuilder\QueryBuilderHandler($connection);
        }

        return 
$FluentSmtpDb;
    }
}