Deprecated
This method has been deprecated.
AnsPress_Admin_Ajax::ap_taxo_rename()
Description #
Ajax cllback for updating old taxonomy question_tags to question_tag
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(); }
Expand full source code Collapse full source code View on GitHub: admin/ajax.php:48
Add your comment