Function Reference: geodir_custom_posts_upgrade_1_0_8
Summary
This function has not been documented yet.
Source File
geodir_custom_posts_upgrade_1_0_8() is located in geodir_custom_posts/gd_upgrade.php [Line: 13]
Source Code
function geodir_custom_posts_upgrade_1_0_8(){ global $wpdb,$plugin_prefix; $geodir_custom_post_types = get_option('geodir_custom_post_types'); if(!empty($geodir_custom_post_types)) { foreach($geodir_custom_post_types as $key) { // rename tables if we need to if($wpdb->query("SHOW TABLES LIKE 'geodir_".$key."_detail'")>0){$wpdb->query("RENAME TABLE geodir_".$key."_detail TO ".$wpdb->prefix."geodir_".$key."_detail");} $wpdb->query("ALTER TABLE ".$wpdb->prefix."geodir_".$key."_detail MODIFY `post_title` text NULL"); } } }