File: wp-includes/theme-previews.php
-
Add filters and actions to enable Block Theme Previews in the Site Editor.
-
functionwp_get_theme_preview_path()
Filters the blog option to return the path for the previewed theme.
-
Adds a middleware to `apiFetch` to set the theme for the preview.
-
functionwp_block_theme_activate_nonce()
Set a JavaScript constant for theme activation.