Codex tools: Log in
Languages: English • Русский • (Add your language)
Contents |
A safe way of removing a named option/value pair from the options database table.
<?php delete_option( $option ); ?>
<?php delete_option( 'my_option' ); ?>
Boolean TRUE if the option has been successfully deleted, otherwise FALSE
Options API: get_option(), add_option(), update_option(), delete_option()
delete_option() is located in wp-includes/functions.php.