wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



_sync_custom_logo_to_site_logo › WordPress Function

Seitn/v
Veraltetn/v
_sync_custom_logo_to_site_logo ( $value )
Parameter:
  • (mixed) $value Attachment ID of the custom logo or an empty value.
    Erforderlich: Ja
Gibt zurück:
  • (mixed)
Definiert in:
Codex:

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



Quellcode

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

	return $value;
}