- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
50 lines
989 B
PHP
Executable File
50 lines
989 B
PHP
Executable File
<?php
|
|
/**
|
|
* bwfan_terms table class
|
|
*
|
|
*/
|
|
|
|
if ( ! class_exists( 'BWFAN_DB_Table_Terms' ) && BWFAN_Common::is_pro_3_0() ) {
|
|
class BWFAN_DB_Table_Terms extends BWFAN_DB_Tables_Base {
|
|
public $table_name = 'bwfan_terms';
|
|
|
|
/**
|
|
* Get table's columns
|
|
*
|
|
* @return string[]
|
|
*/
|
|
public function get_columns() {
|
|
return [
|
|
"ID",
|
|
"name",
|
|
"type",
|
|
"data",
|
|
"created_at",
|
|
"updated_at",
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Get query for create table
|
|
*
|
|
* @return string
|
|
*/
|
|
public function get_create_table_query() {
|
|
global $wpdb;
|
|
$collate = $this->get_collation();
|
|
|
|
return "CREATE TABLE {$wpdb->prefix}$this->table_name (
|
|
`ID` bigint(20) unsigned NOT NULL auto_increment,
|
|
`name` varchar(255) NOT NULL,
|
|
`type` tinyint(2) unsigned NOT NULL,
|
|
`data` longtext,
|
|
`created_at` datetime,
|
|
`updated_at` datetime,
|
|
PRIMARY KEY (`ID`),
|
|
KEY `type` (`type`)
|
|
) $collate;";
|
|
}
|
|
|
|
|
|
}
|
|
} |