Quick addendum to this thread because I used it today to update the site_icon
. It seems the custom_logo
is set by using theme_mod
, not update_option
(did not work for me).
The complete code for updating the website logo should be:
set_theme_mod('custom_logo',get_field('field_name','options', false), true);
Hopefully this helps someone.