• 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 / Files / inc/back-compat.php


Lines:

1 to 25 of 25
<?php

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

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

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

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

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

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

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

      Published: 8th April 2020 | Last updated: 12th September 2021

      Primary Sidebar

      Information

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

      inc

      Footer

      WordPress a2z
      WordPress a2z
      WordPress Dynamic API Reference
      WordPress 6.1.1. PHP: 8.0.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-2023. All rights reserved.


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

      • Home
      • Blog
      • Sitemap
      • Sites