From Hybridgraphics

Revision as of 16:08, 21 February 2012 by (Talk)
Jump to: navigation, search

There's a bug in your first eaxlpme What if the value of your option is 0 or an empty string.$option = get_option( 'Option Name' );if( false === $option ) {$option = 'My real option value.';}I do agree, though, that the improved get_option available with WP 2.7 makes things simpler. No more checking for false.

Personal tools