wpseek.com
A WordPress-centric search engine for devs and theme authors



_sync_custom_logo_to_site_logo › WordPress Function

Since5.8.0
Deprecatedn/a
_sync_custom_logo_to_site_logo ( $value )
Parameters:
  • (mixed) $value Attachment ID of the custom logo or an empty value.
    Required: Yes
Returns:
  • (mixed)
Defined at:
Codex:

Updates the site_logo option when the custom_logo theme-mod gets updated.



Source

function _sync_custom_logo_to_site_logo( $value ) {
	if ( empty( $value ) ) {
		delete_option( 'site_logo' );
	} else {
		update_option( 'site_logo', $value );
	}

	return $value;
}