wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



_sync_custom_logo_to_site_logo › WordPress Function

Dan/a
Deprecaton/a
_sync_custom_logo_to_site_logo ( $value )
Parametri:
  • (mixed) $value Attachment ID of the custom logo or an empty value.
    Richiesto:
Ritorna:
  • (mixed)
Definito a:
Codex:

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



Sorgenti

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

	return $value;
}