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
Called by
1 to 15 of 69
- cookie_cat_load_temp_xml() –
- cookie_cat_save_xml() –
- oik_batchmove_log_reposted() – Update the log of oik_batchmove_lazy_cron
- Tests_admin_oik_css::test_oik_css_lazy_oik_menu_box() – Tests oik_menu_box and oik_css_options with bw_autop disabled
- Tests_admin_oik_css::test_oik_css_lazy_oik_menu_box_bb_BB() – Tests oik_menu_box and oik_css_options with bw_autop disabled language bb_BB
- Tests_admin_oik_css::test_oik_css_options_bw_autop_enabled() – Tests oik_css_options with bw_autop enabled
- Tests_admin_oik_css::test_oik_css_options_bw_autop_enabled_bb_BB() – Tests oik_css_options with bw_autop enabled language bb_BB
- Tests_issue_63::tests_oik_admin_bar_menu() – Tests that our "Howdy %s", replacement logic still works in the latest version of WordPress
- Tests_issue_68::test_html_for_example_and_snippet_is_the_same() – Tests some of the logic in bw_expand_shortcode()
- Tests_oik_admin::test_oik_admin_options_off() –
- Tests_oik_admin::test_oik_admin_options_on() – Test the oik admin options
- Tests_oik_admin::test_oik_admin_options_on_bb_BB() – Test the oik admin options for bb_BB
- Tests_oik_admin::test_oik_button_do_page_bb_BB() – Tests oik_buttons_do_page for bb_BB
- Tests_oik_admin::test_oik_custom_css_box_edit_link_bb_BB() – Test the oik custom CSS box for bb_BB
- Tests_oik_admin::test_oik_custom_css_box_not_defined_bb_BB() – Test the oik custom CSS box for bb_BB
