_sync_custom_logo_to_site_logo()WP 1.0

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

Internal function — this function is designed to be used by the kernel itself. It is not recommended to use this function in your code.

No Hooks.

Return

Mixed.

Usage

_sync_custom_logo_to_site_logo( $value );
$value(mixed) (required)
Attachment ID of the custom logo or an empty value.

_sync_custom_logo_to_site_logo() code WP 6.4.3

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

	return $value;
}