Home / Files / inc/back-compat.php


Lines: 1 to 25 of 25

<?php

/**
 * Twenty Sixteen back compat functionality
 *
 * Prevents Twenty Sixteen from running on WordPress versions prior to 4.4,
 * since this theme is not meant to be backward compatible beyond that and
 * relies on many newer functions and markup changes introduced in 4.4.
 *
 * @package WordPress
 * @subpackage Twenty_Sixteen
 * @since Twenty Sixteen 1.0
 */

/* function twentysixteen_switch_theme() – Prevent switching to Twenty Sixteen on old versions of WordPress. */
add_action( 'after_switch_theme', 'twentysixteen_switch_theme' );

/* function twentysixteen_upgrade_notice() – Adds a message for unsuccessful theme switch. */

/* function twentysixteen_customize() – Prevents the Customizer from being loaded on WordPress versions prior to 4.4. */
add_action( 'load-customize.php', 'twentysixteen_customize' );

/* function twentysixteen_preview() – Prevents the Theme Preview from being loaded on WordPress versions prior to 4.4. */
add_action( 'template_redirect', 'twentysixteen_preview' );
 

 View on Trac

Called by

    Invoked by

      Calls

      1 to 1 of 1

      • add_action() – Hooks a function on to a specific action.

      Call hooks

      File name: inc/back-compat.php
      Plugin ref: Twenty Sixteen
      Version: 1.4
      Deprecated?: No
      API Letters: B,C,I,P

      Published: 10th March 2017 | Last updated: 10th March 2017

      Information

      File name: inc/back-compat.php
      Plugin ref: Twenty Sixteen
      Version: 1.4
      Deprecated?: No
      API Letters: B,C,I,P

      inc
      • Plugins
      • Themes
      • Shortcodes
      • APIs
      • Files
      • Hooks
      • Classes
      • Home
      • Sites
      • Sitemap
      • Blog
      oik-plugins WordPress a2z
      WordPress Dynamic API Reference

      Site:  wp-a2z.org
      © Copyright oik-plugins 2014-2018. All rights reserved.


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