PUM_Abstract_Database::__construct()
Get things started
Description Description
Source Source
File: classes/Abstract/Database.php
public function __construct() { global $wpdb; $current_db_version = $this->get_installed_version(); if ( ! $current_db_version || $current_db_version < $this->version ) { // Install the table. @$this->create_table(); if ( $wpdb->get_var( "SHOW TABLES LIKE '{$this->table_name()}'" ) == $this->table_name() ) { $this->update_db_version(); } } $wpdb->{$this->table_name} = $this->table_name(); }
Expand full source code Collapse full source code View on Trac