delete_option() and update_option() returning false

The delete_option() function will return false if the option does not exist.

The update_option() function will return false if the option already has the same value as what you’re trying to update it to.

Both will also return false if the SQL query itself fails for whatever reason.

Leave a Comment