wpseek.com
WordPress开发者和主题制作者的搜索引擎



_sync_custom_logo_to_site_logo › WordPress Function

Sincen/a
已弃用n/a
_sync_custom_logo_to_site_logo ( $value )
参数:
  • (mixed) $value Attachment ID of the custom logo or an empty value.
    Required: Yes
返回:
  • (mixed)
定义在:
文档:

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



源码

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

	return $value;
}