WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/preview theme

Description

Start preview theme output buffer.

Will only perform task if the user has permissions and 'template' and 'preview' query variables exist. Will add 'stylesheet' filter if 'stylesheet' query variable exists.

Usage

<?php preview_theme() ?>

Parameters

None.

Return Values

(void) 
This function does not return a value.

Examples

Notes

Change Log

Since: 2.5.0

Source File

preview_theme() is located in wp-includes/theme.php.

Related

See also index of Function Reference and index of Template Tags.