How to check False booleans when using get_option?
Question
Whenenver you do get_option( 'my_option' )
and that my_option
is literally False
itself, you cannot simply check for if( !get_option( 'my_option' ) )
, to see if the value exists, because it’ll return False
and the check will be meaningless.
Is there no way to check whether or not the option key my_option
exists?
0
options
3 years
2019-10-31T08:58:04-05:00
2019-10-31T08:58:04-05:00 0 Answers
77 views
0
Leave an answer