Warning: This function has been deprecated.
preview_theme() WordPress Function
The preview_theme() function allows you to preview a theme before it is activated on your site. This is useful if you want to try out a new theme without making any changes to your live site. To preview a theme, simply navigate to the Appearance > Themes page in your WordPress admin panel and click the "Preview" button for the theme you want to preview.
preview_theme() #
Start preview theme output buffer.
Description
Will only perform task if the user has permissions and template and preview query variables exist.
Source
File: wp-includes/deprecated.php
function preview_theme() { _deprecated_function( __FUNCTION__, '4.3.0' ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
4.3.0 | This function has been deprecated. |
2.6.0 | Introduced. |