preview_theme

Start preview theme output buffer.

Description

preview_theme(); 

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


Usage

  1. if ( !function_exists( 'preview_theme' ) ) { 
  2. require_once ABSPATH . WPINC . '/deprecated.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = preview_theme(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/deprecated.php  
  1. function preview_theme() { 
  2. _deprecated_function( __FUNCTION__, '4.3.0' );