WordPress get_option() Handling non-existing options


Example

Code

<?php echo get_option( 'something_bla_bla_bla' ); ?>

Output

false


Code

<?php echo get_option( 'something_bla_bla_bla', 'Oh no!' ); ?>

Output

Oh no!