• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress a2z

WordPress a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / twentyfifteen_preview() – Prevent the Theme Preview from being loaded on WordPress versions prior to 4.1.

You appear to be a bot. Output may be restricted

Description

Prevent the Theme Preview from being loaded on WordPress versions prior to 4.1.

Usage

twentyfifteen_preview();

Parameters

Returns

void

Source

File name: twentyfifteen/inc/back-compat.php


Lines:

1 to 7 of 7
function twentyfifteen_preview() {
  if ( isset( $_GET['preview'] ) ) {
    /* translators: %s: WordPress version. */
    wp_die( sprintf( __( 'Twenty Fifteen requires at least WordPress version 4.1. You are running version %s. Please upgrade and try again.', 'twentyfifteen' ), $GLOBALS['wp_version'] ) );
  }
}
 

 View on Trac

Published: 19th December 2019 | Last updated: 8th April 2020

Primary Sidebar

Information

Function name: twentyfifteen_preview
Plugin ref: Twenty Fifteen
Version: 2.8
Sourcefile: inc/back-compat.php
File ref: inc/back-compat.php
Deprecated?: No
API Letters: P,T

Footer

WordPress a2z
WordPress a2z
WordPress Dynamic API Reference
WordPress 5.6.2. PHP: 7.3.27
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  wp-a2z.org
© Copyright WordPress a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites