[ 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: 655 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.

return: void

twenty_twenty_one_widgets_init()   X-Ref
Registers widget area.

return: void

twenty_twenty_one_content_width()   X-Ref
Sets 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
Enqueues scripts and styles.

return: void

twentytwentyone_block_editor_script()   X-Ref
Enqueues block editor script.

return: void

twenty_twenty_one_skip_link_focus_fix()   X-Ref
Fixes 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
Enqueues non-latin language styles.

return: void

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

return: void

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

return: void

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

return: void

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

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.




Generated : Thu Nov 21 08:20:01 2024 Cross-referenced by PHPXref