Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




drop_index [ WordPress Function ]

drop_index ( $table, $index )
Parameters:
  • (string) $table Database table name.
  • (string) $index Index name to drop.
Returns:
  • (bool) True, when finished.
Defined at:



{@internal Missing Short Description}}

{@internal Missing Long Description}}

Source


<?php
function drop_index($table$index) {
    global 
$wpdb;
    
$wpdb->hide_errors();
    
$wpdb->query("ALTER TABLE `$table` DROP INDEX `$index`");
    
// Now we need to take out all the extra ones we may have created
    
for ($i 0$i 25$i++) {
        
$wpdb->query("ALTER TABLE `$table` DROP INDEX `{$index}_$i`");
    }
    
$wpdb->show_errors();
    return 
true;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics