update_option('myboolean', FALSE); $option = get_option('myboolean', 'default');
Question: what is the value of
It should be
FALSE, because that is the value that is set by the user in the database. However, all boolean
FALSEvalues seem to return the
$defaultparameter should only be returned when the option does not exist in the database. Right?
- The topic ‘get_option() buggy with FALSE’ is closed to new replies.