[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

Twenty Nineteen functions and definitions

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

Defines 9 functions

  twentynineteen_setup()
  wp_get_list_item_separator()
  twentynineteen_widgets_init()
  twentynineteen_excerpt_more()
  twentynineteen_content_width()
  twentynineteen_scripts()
  twentynineteen_skip_link_focus_fix()
  twentynineteen_editor_customizer_styles()
  twentynineteen_colors_css_wrap()

Functions
Functions that are not part of a class:

twentynineteen_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.

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.


twentynineteen_widgets_init()   X-Ref
Register widget area.


twentynineteen_excerpt_more( $link )   X-Ref
Replaces "[...]" (appended to automatically generated excerpts) with ... and
a 'Continue reading' link.

return: string 'Continue reading' link prepended with an ellipsis.
param: string $link Link to single post/page.

twentynineteen_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.


twentynineteen_scripts()   X-Ref
Enqueue scripts and styles.


twentynineteen_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.


twentynineteen_editor_customizer_styles()   X-Ref
Enqueue supplemental block editor styles.


twentynineteen_colors_css_wrap()   X-Ref
Display custom color CSS in customizer and on frontend.




Generated : Fri Apr 26 08:20:02 2024 Cross-referenced by PHPXref