- 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>
38 lines
666 B
PHP
Executable File
38 lines
666 B
PHP
Executable File
<?php
|
|
|
|
class BWFAN_DB_Table_Options extends BWFAN_DB_Tables_Base {
|
|
public $table_name = 'bwf_options';
|
|
|
|
/**
|
|
* Get table's columns
|
|
*
|
|
* @return string[]
|
|
*/
|
|
public function get_columns() {
|
|
return [
|
|
"id",
|
|
"key",
|
|
"value",
|
|
];
|
|
}
|
|
|
|
/**
|
|
* 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(10) unsigned NOT NULL auto_increment,
|
|
`key` varchar(150) default NULL,
|
|
`value` longtext,
|
|
PRIMARY KEY (`id`),
|
|
KEY `id` (`id`),
|
|
KEY `key` (`key`)
|
|
) $collate;";
|
|
}
|
|
}
|