[ Index ]

PHP Cross Reference of WordPress




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

Functions which enhance the theme by hooking into WordPress

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

Defines 16 functions


Functions that are not part of a class:

twentynineteen_body_classes( $classes )   X-Ref
Adds custom classes to the array of body classes.

return: array
param: array $classes Classes for the body element.

twentynineteen_post_classes( $classes, $class, $post_id )   X-Ref
Adds custom class to the array of posts classes.

twentynineteen_pingback_header()   X-Ref
Add a pingback url auto-discovery header for single posts, pages, or attachments.

twentynineteen_comment_form_defaults( $defaults )   X-Ref
Changes comment form default fields.

twentynineteen_get_the_archive_title()   X-Ref
Filters the default archive titles.

twentynineteen_can_show_post_thumbnail()   X-Ref
Determines if post thumbnail can be displayed.

twentynineteen_image_filters_enabled()   X-Ref
Returns true if image filters are enabled on the theme options.

twentynineteen_post_thumbnail_sizes_attr( $attr )   X-Ref
Add custom sizes attribute to responsive image functionality for post thumbnails.

return: string Value for use in post thumbnail 'sizes' attribute.
param: array $attr  Attributes for the image markup.

twentynineteen_get_avatar_size()   X-Ref
Returns the size for avatars used in the theme.

twentynineteen_is_comment_by_post_author( $comment = null )   X-Ref
Returns true if comment is by author of the post.

twentynineteen_get_discussion_data()   X-Ref
Returns information about the current post's discussion, with cache support.

twentynineteen_add_ellipses_to_nav( $nav_menu, $args )   X-Ref
Add an extra menu to our nav for our priority+ navigation to use

return: string More link for hidden menu items.
param: object $nav_menu  Nav menu.
param: object $args      Nav menu args.

twentynineteen_nav_menu_link_attributes( $atts, $item, $args, $depth )   X-Ref
WCAG 2.0 Attributes for Dropdown Menus

Adjustments to menu attributes tot support WCAG 2.0 recommendations
for flyout and dropdown menus.

twentynineteen_add_dropdown_icons( $output, $item, $depth, $args )   X-Ref
Add a dropdown icon to top-level menu items.

return: string Nav menu item start element.
param: string $output Nav menu item start element.
param: object $item   Nav menu item.
param: int    $depth  Depth.
param: object $args   Nav menu args.

twentynineteen_add_mobile_parent_nav_menu_items( $sorted_menu_items, $args )   X-Ref
Create a nav menu item to be displayed on mobile to navigate from submenu back to the parent.

This duplicates each parent nav menu item and makes it the first child of itself.

return: array Amended nav menu items.
param: array  $sorted_menu_items Sorted nav menu items.
param: object $args              Nav menu args.

twentynineteen_hsl_hex( $h, $s, $l, $to_hex = true )   X-Ref
Convert HSL to HEX colors

Generated: Fri Jan 24 01:00:03 2020 Cross-referenced by PHPXref 0.7.1