• 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 / twentytwenty_theme_support() – Sets up theme defaults and registers support for various WordPress features.

You appear to be a bot. Output may be restricted

Description

Sets up theme defaults and registers support for various WordPress features.

Note that this function is hooked into the after_setup_theme hook, which runs before the init hook. The init hook is too late for some features, such as indicating support for post thumbnails.

Usage

twentytwenty_theme_support();

Parameters

Returns

void

Source

File name: twentytwenty/functions.php


Lines:

101 to 114 of 114
  add_theme_support( 'customize-selective-refresh-widgets' );

  /*
	 * Adds `async` and `defer` support for scripts registered or enqueued
	 * by the theme.
	 */
  $loader = new TwentyTwenty_Script_Loader();
  add_filter( 'script_loader_tag', array( $loader, 'filter_script_loader_tag' ), 10, 2 );

}
 
« Previous [1] [2]

 View on GitHub View on Trac

Published: 25th November 2019 | Last updated: 10th December 2020

Primary Sidebar

Information

Function name: twentytwenty_theme_support
Plugin ref: Twenty Twenty
Version: 1.6
Sourcefile: functions.php
File ref: functions.php
Deprecated?: No
API Letters: S,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