WordPress at Your Fingertips
function is not described

_sync_custom_logo_to_site_logo() WP 1.0

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

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

No Hooks.




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

Code of _sync_custom_logo_to_site_logo() WP 5.8.2

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

	return $value;