Complete the code to save a site-wide option named 'site_color' with the value 'blue'.
update_option('site_color', [1]);
The update_option function saves the value for the option name. The value must be a string, so it needs quotes.
Complete the code to retrieve the value of the site-wide option 'site_color'.
$color = [1]('site_color');
The get_option function retrieves the value of a saved option by its name.
Fix the error in the code to delete the site-wide option 'site_color'.
[1]('site_color');
The correct function to remove an option is delete_option. Other names are incorrect.
Fill both blanks to register a new option group and add a setting field for 'site_color'.
register_setting('[1]', '[2]');
The first argument is the option group name, usually 'general' for site-wide settings. The second is the option name.
Fill all three blanks to create a settings field for 'site_color' with label 'Site Color' in the 'general' page.
add_settings_field('[1]', '[2]', '[3]', 'general', 'default');
The first blank is the option name, the second is the label text, and the third is the callback function name that outputs the field HTML.