[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

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

Functions and definitions

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

Defines 12 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()
  wp_get_list_item_separator()

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.

since: Twenty Twenty-One 1.0
return: void

twenty_twenty_one_widgets_init()   X-Ref
Register widget area.

since: Twenty Twenty-One 1.0
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.

since: Twenty Twenty-One 1.0
return: void

twenty_twenty_one_scripts()   X-Ref
Enqueue scripts and styles.

since: Twenty Twenty-One 1.0
return: void

twentytwentyone_block_editor_script()   X-Ref
Enqueue block editor script.

since: Twenty Twenty-One 1.0
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.

since: Twenty Twenty-One 1.0

twenty_twenty_one_non_latin_languages()   X-Ref
Enqueue non-latin language styles.

since: Twenty Twenty-One 1.0
return: void

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

since: Twenty Twenty-One 1.0
return: void

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

since: Twenty Twenty-One 1.0
return: void

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

since: Twenty Twenty-One 1.0
return: void

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

since: Twenty Twenty-One 1.0
return: void

wp_get_list_item_separator()   X-Ref
Retrieves the list item separator based on the locale.

Added for backward compatibility to support pre-6.0.0 WordPress versions.

since: 6.0.0



Generated: Wed Nov 6 01:00:02 2024 Cross-referenced by PHPXref 0.7.1