AnsPress_Upgrader::check_old_meta_table_exists()

Description #

Check if old ap_meta table exists.

Source #

File: lib/class-anspress-upgrader.php

	public function check_old_meta_table_exists() {
		global $wpdb;

		$table_name = $wpdb->get_var( "SHOW TABLES LIKE '{$wpdb->prefix}ap_meta'" ); // phpcs:ignore WordPress.DB

		if ( $wpdb->prefix . 'ap_meta' === $table_name ) {
			$this->meta_table_exists = true;
		}
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment