Languages: English • Русский • (Add your language)
A safe way of removing a named option/value pair from the options database table.
<?php delete_option( $option ); ?>
This will delete 'my_option' from the options table within your MySQL database.
<?php delete_option( 'my_option' ); ?>
Since: 1.2.0
delete_option()
is located in wp-includes/option.php
.