In this quick tip, you will see that you can specify a default return value for the WordPress function get_option
(). When the option does not exist in the database, such as you are setting up a theme options page, then you can specify a return value as the default. Otherwise, you will get “false” back.
[optin-monster-shortcode id="dhjgl8fs6dc7qwtg"]
[optin-monster-shortcode id="fggc9bpbilvhcqol"]
Did you learn something new? Share your thoughts.