first commit

This commit is contained in:
2026-03-05 13:07:40 +01:00
commit 64ba0721ee
25709 changed files with 4691006 additions and 0 deletions

View File

@@ -0,0 +1,80 @@
<?php
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
class ES_DB_Blocked_Emails extends ES_DB {
/**
* Table Name
*
* @since 4.2.2
*
* @var $table_name
*/
public $table_name;
/**
* Version
*
* @since 4.2.2
*
* @var $version
*/
public $version;
/**
* Primary Key
*
* @since 4.2.2
*
* @var $primary_key
*/
public $primary_key;
/**
* ES_DB_Blocked_Emails constructor.
*
* @since 4.2.2
*/
public function __construct() {
global $wpdb;
parent::__construct();
$this->table_name = $wpdb->prefix . 'ig_blocked_emails';
$this->primary_key = 'id';
$this->version = '1.0';
}
/**
* Get columns and formats
*
* @since 2.1
*/
public function get_columns() {
return array(
'id' => '%d',
'email' => '%s',
'ip' => '%s',
'created_on' => '%s',
);
}
/**
* Get default column values
*
* @since 2.1
*/
public function get_column_defaults() {
return array(
'email' => null,
'ip' => null,
'created_on' => ig_get_current_date_time(),
);
}
}