_sync_custom_logo_to_site_logo()
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() 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; }