wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



_sync_custom_logo_to_site_logo › WordPress Function

Depuisn/a
Dépréciéen/a
_sync_custom_logo_to_site_logo ( $value )
Paramètres:
  • (mixed) $value Attachment ID of the custom logo or an empty value.
    Requis: Oui
Retourne:
  • (mixed)
Défini(e) dans:
Codex:

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



Source

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

	return $value;
}