You appear to be a bot. Output may be restricted
Description
Set the value of an option field in the options group
Usage
$mixed = bw_update_option( $field, $value, $options );
Parameters
- $field
- ( string ) required – the option field to be set
- $value
- ( mixed ) optional – the value of the option
- $options
- ( string ) optional default: bw_options – the name of the option field
Returns
mixed $value Parms are basically the same as for update_optionSource
File name: oik-types/admin/oik-types.phpLines:
1 to 7 of 7
function bw_update_option( $field, $value=NULL, $options="bw_options" ) { $bw_options = get_option( $options ); $bw_options[ $field ] = $value; bw_trace2( $bw_options, "bw_options", true, BW_TRACE_VERBOSE ); update_option( $options, $bw_options ); return( $value ); }View on GitHub