[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-content/themes/twentytwentyone/ -> functions.php (summary)

Functions and definitions

File Size: 629 lines (19 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 11 functions

  twenty_twenty_one_setup()
  twenty_twenty_one_widgets_init()
  twenty_twenty_one_content_width()
  twenty_twenty_one_scripts()
  twentytwentyone_block_editor_script()
  twenty_twenty_one_skip_link_focus_fix()
  twenty_twenty_one_non_latin_languages()
  twentytwentyone_customize_preview_init()
  twentytwentyone_customize_controls_enqueue_scripts()
  twentytwentyone_the_html_classes()
  twentytwentyone_add_ie_class()

Functions
Functions that are not part of a class:

twenty_twenty_one_setup()   X-Ref
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.

return: void

twenty_twenty_one_widgets_init()   X-Ref
Register widget area.

return: void

twenty_twenty_one_content_width()   X-Ref
Set the content width in pixels, based on the theme's design and stylesheet.

Priority 0 to make it available to lower priority callbacks.

return: void

twenty_twenty_one_scripts()   X-Ref
Enqueue scripts and styles.

return: void

twentytwentyone_block_editor_script()   X-Ref
Enqueue block editor script.

return: void

twenty_twenty_one_skip_link_focus_fix()   X-Ref
Fix skip link focus in IE11.

This does not enqueue the script because it is tiny and because it is only for IE11,
thus it does not warrant having an entire dedicated blocking script being loaded.


twenty_twenty_one_non_latin_languages()   X-Ref
No description

twentytwentyone_customize_preview_init()   X-Ref
Enqueue scripts for the customizer preview.

return: void

twentytwentyone_customize_controls_enqueue_scripts()   X-Ref
Enqueue scripts for the customizer.

return: void

twentytwentyone_the_html_classes()   X-Ref
Calculate classes for the main <html> element.

return: void

twentytwentyone_add_ie_class()   X-Ref
Add "is-IE" class to body if the user is on Internet Explorer.

return: void



Generated : Mon Jan 18 08:20:02 2021 Cross-referenced by PHPXref