You appear to be a bot. Output may be restricted
Description
Get the value of an option field
Usage
$mixed = 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/includes/bobbcomp.phpLines:
1 to 15 of 15
function bw_get_option( $field, $set="bw_options" ) { /* WordPress code */ /* Need to put some code here to see if it's been loaded */ $bw_options = get_option( $set ); //bw_trace( $bw_options, __FUNCTION__, __LINE__, __FILE__, "bw_options" ); 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" ); //bw_backtrace(); return( $option ); }View on GitHub View on Trac