_sync_custom_logo_to_site_logo() – Updates the site_logo option when the custom_logo theme-mod gets updated.
You appear to be a bot. Output may be restricted
Description
Updates the site_logo option when the custom_logo theme-mod gets updated.
Usage
$mixed = _sync_custom_logo_to_site_logo( $value );
Parameters
- $value
- ( mixed ) required – Attachment ID of the custom logo or an empty value.
Returns
mixed
Source
File name: wordpress/wp-includes/blocks/site-logo.php
Lines:
1 to 9 of 9
function _sync_custom_logo_to_site_logo( $value ) { if ( empty( $value ) ) { delete_option( 'site_logo' ); } else { update_option( 'site_logo', $value ); } return $value; }