Switch language

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




upgrade_230_options_table [ WordPress Function ]

upgrade_230_options_table ( No parameters )
Defined at:



Remove old options from the database.

Source


<?php
function upgrade_230_options_table() {
    global 
$wpdb;
    
$old_options_fields = array( 'option_can_override''option_type''option_width''option_height''option_description''option_admin_level' );
    
$wpdb->hide_errors();
    foreach ( 
$old_options_fields as $old )
        
$wpdb->query("ALTER TABLE $wpdb->options DROP $old");
    
$wpdb->show_errors();
}
?>

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