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 ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



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