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.


Top ↑

Source

File: wp-includes/deprecated.php

function preview_theme() {
	_deprecated_function( __FUNCTION__, '4.3.0' );
}


Top ↑

Changelog

Changelog
VersionDescription
4.3.0This function has been deprecated.
2.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More