This function had been marked as deprecated.

Start preview theme output buffer.

Will only perform task if the user has permissions and template and preview query variables exist.

Signature

preview_theme()

Return

(void)

Source

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

Link here