AnsPress_Upgrader::delete_question_metatables( integer $id )

Description #

Delete old meta.

Parameters #

  • $id
    integer (Required) Question ID.

Source #

File: lib/class-anspress-upgrader.php

	public function delete_question_metatables( $id ) {
		global $wpdb;

		if ( ! $this->meta_table_exists ) {
			return;
		}

		$old_views = $wpdb->query( "DELETE FROM {$wpdb->prefix}ap_meta WHERE apmeta_type = 'post_view' AND apmeta_actionid = {$id}" ); // phpcs:ignore WordPress.DB
	}

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