W3cubDocs

/WordPress

preview_theme()

This function has been deprecated.

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' );
}

Changelog

Version Description
4.3.0 This function has been deprecated.
2.6.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/preview_theme