# desktop-mode/0.9.6/includes/living-tree/assets.php

OpenStation: Desktop Windows, Dock &amp; Virtual Desktops for WP Admin, version 0.9.6. 43 lines.

- Page: https://pluginprobe.com/plugins/desktop-mode/0.9.6/code/includes/living-tree/assets.php
- Raw: https://pluginprobe.com/plugins/desktop-mode/0.9.6/raw/includes/living-tree/assets.php
- Modified: 2026-07-15T14:06:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/desktop-mode/0.9.6/code/includes/living-tree/assets.php#L10-L20`.

```php
<?php
/**
 * Desktop Mode — Living Tree: asset registration.
 *
 * Registers the `desktop-mode-living-tree-wallpaper` script handle (built
 * bundle `assets/js/living-tree-wallpaper[.min].js`). The wallpaper
 * `server-sync` lazy-loads it when the user selects the `wp-living-tree`
 * wallpaper (or opens OS Settings → Wallpaper and the picker pulls the
 * def in). The bundle's only side effect is publishing the `WallpaperDef`
 * on `window.desktopModeWallpapers['wp-living-tree']`. Mirrors the
 * animated-logo block in `includes/assets.php`.
 *
 * @package WPDesktopMode
 * @since   0.9.4
 */

defined( 'ABSPATH' ) || exit;

/**
 * Register the Living Tree wallpaper script handle.
 *
 * @since 0.9.4
 */
function desktop_mode_living_tree_register_assets() {
	$version = DESKTOP_MODE_VERSION;
	$suffix  = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';

	$js_path = DESKTOP_MODE_DIR . 'assets/js/living-tree-wallpaper' . $suffix . '.js';
	wp_register_script(
		'desktop-mode-living-tree-wallpaper',
		DESKTOP_MODE_URL . 'assets/js/living-tree-wallpaper' . $suffix . '.js',
		array( 'wp-hooks', 'wp-i18n' ),
		file_exists( $js_path ) ? (string) filemtime( $js_path ) : $version,
		true
	);
	wp_set_script_translations(
		'desktop-mode-living-tree-wallpaper',
		'desktop-mode',
		DESKTOP_MODE_DIR . 'languages'
	);
}
add_action( 'init', 'desktop_mode_living_tree_register_assets', 5 );

```
