You appear to be a bot. Output may be restricted
Description
Get the value of an option field
Usage
$mixed = bobbcomp::bw_get_option( $field, $set );
Parameters
- $field
- ( string ) required – field name within set
- $set
- ( string ) optional default: bw_options – option name
Returns
mixed option valueSource
File name: oik/libs/class-bobbcomp.phpLines:
1 to 11 of 11
static function bw_get_option( $field, $set="bw_options" ) { $bw_options = get_option( $set ); if ( isset( $bw_options[ $field ] ) ) { $option = $bw_options[ $field ] ; } else { $option = null; } // Note: A value that appears to be blank ( == '') may actually be FALSE ( == FALSE ) // bw_trace( '!' .$option.'!', __FUNCTION__, __LINE__, __FILE__, "option" ); return( $option ); }View on GitHub View on Trac