_sync_custom_logo_to_site_logo


_sync_custom_logo_to_site_logo ( $old_value, $value )

Parameters:
  • (mixed) old_value The old option value.
  • (mixed) value The new option value.
Defined at:

Description

Updates the site_logo option when the custom_logo theme-mod gets updated.This function is hooked on "update_option_theme_mods_$theme" and not "pre_set_theme_mod_custom_logo" because by hooking in `update_option` the function accounts for remove_theme_mod() as well.

Related Functions

_sync_custom_logo_to_site_logo_on_setup_theme, _custom_logo_header_styles, _override_custom_logo_theme_mod, has_custom_logo, register_block_core_site_logo

Top Google Results

User discussions

wpseek mobile