upgrade_schema = $args[0]; } /** @return bool */ private function run() { $table = 'icl_strings'; $column = 'word_count'; if ( $this->upgrade_schema->does_table_exist( $table ) ) { if ( ! $this->upgrade_schema->does_column_exist( $table, $column ) ) { $this->upgrade_schema->add_column( $table, $column, 'int unsigned NULL' ); } } return $this->result; } public function run_admin() { return $this->run(); } public function run_ajax() { return $this->run(); } public function run_frontend() { return $this->run(); } /** @return bool */ public function get_results() { return $this->result; } }