I want to automate updating plugin options. There are some things that I repeat a lot.
With wp-cli I know I can update simple options like this:
php wp-cli.phar option update blog_public 1
However, some plugin options save their options in a serialized string.
Example of serialized option_value in wp_options:
a:9:{s:4:"from";s:21:"[email protected]";s:8:"fromname";s:51:"xxx";s:4:"host";s:13:"smtp.xx.com";s:10:"smtpsecure";s:3:"ssl";s:4:"port";s:3:"465";s:8:"smtpauth";s:3:"yes";s:8:"username";s:21:"[email protected]";s:8:"password";s:13:"xxx";s:10:"deactivate";s:0:"";}
How to update those options?