Wordpress - WordPress Settings and Configuration
Which of the following is the correct syntax to update a setting named 'site_color' to 'blue'?
update_option, which takes two parameters: the option name and the new value.update_option('site_color', 'blue');. update_option('site_color' => 'blue'); uses an incorrect array syntax. get_option('site_color', 'blue'); uses get_option which reads, not writes. set_option('site_color', 'blue'); uses a non-existent function.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions