Deprecated

This method has been deprecated.

AnsPress_Admin_Ajax::ap_taxo_rename()

Description #

Ajax cllback for updating old taxonomy question_tags to question_tag

Changelog #

VersionDescription
4.1.0Introduced.

Source #

File: admin/ajax.php

	public static function ap_taxo_rename() {

		if ( current_user_can( 'manage_options' ) ) {
			global $wpdb;
			$wpdb->query( "UPDATE {$wpdb->prefix}term_taxonomy SET taxonomy = 'question_tag' WHERE  taxonomy = 'question_tags'" ); // db call okay, cache ok.

			ap_opt( 'tags_taxo_renamed', 'true' );
		}

		die();
	}

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