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



wp-includes/theme-previews.php › WordPress File

Funktionen4
Theme previews using the Site Editor for block themes.


Funktion Kurzbeschreibung
wp_attach_theme_preview_middlewareAdds a middleware to `apiFetch` to set the theme for the preview.
wp_block_theme_activate_nonceSet a JavaScript constant for theme activation.
wp_get_theme_preview_pathFilters the blog option to return the path for the previewed theme.
wp_initialize_theme_preview_hooksAdd filters and actions to enable Block Theme Previews in the Site Editor.