[ Index ]

PHP Cross Reference of WordPress




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

Twenty Thirteen functions and definitions Sets up the theme and provides some helper functions, which are used in the theme as custom template tags. Others are attached to action and filter hooks in WordPress to change core functionality.

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

Defines 25 functions


Functions that are not part of a class:

twentythirteen_setup()   X-Ref
Twenty Thirteen setup.

Sets up theme defaults and registers the various WordPress features that
Twenty Thirteen supports.

since: Twenty Thirteen 1.0

twentythirteen_fonts_url()   X-Ref
Return the Google font stylesheet URL, if available.

The use of Source Sans Pro and Bitter by default is localized. For languages
that use characters not supported by the font, the font can be disabled.

since: Twenty Thirteen 1.0
return: string Font stylesheet or empty string if disabled.

twentythirteen_scripts_styles()   X-Ref
Enqueue scripts and styles for the front end.

since: Twenty Thirteen 1.0

twentythirteen_resource_hints( $urls, $relation_type )   X-Ref
Add preconnect for Google Fonts.

since: Twenty Thirteen 2.1
return: array URLs to print for resource hints.
param: array   $urls          URLs to print for resource hints.
param: string  $relation_type The relation type the URLs are printed.

twentythirteen_block_editor_styles()   X-Ref
Enqueue styles for the block-based editor.

since: Twenty Thirteen 2.5

twentythirteen_wp_title( $title, $sep )   X-Ref
Filter the page title.

Creates a nicely formatted and more specific title element text for output
in head of document, based on current view.

since: Twenty Thirteen 1.0
return: string The filtered title.
param: string $title Default title text for current view.
param: string $sep   Optional separator.

twentythirteen_widgets_init()   X-Ref
Register two widget areas.

since: Twenty Thirteen 1.0

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

twentythirteen_paging_nav()   X-Ref
Display navigation to next/previous set of posts when applicable.

since: Twenty Thirteen 1.0

twentythirteen_post_nav()   X-Ref
Display navigation to next/previous post when applicable.

since: Twenty Thirteen 1.0

twentythirteen_entry_meta()   X-Ref
Print HTML with meta information for current post: categories, tags, permalink, author, and date.

Create your own twentythirteen_entry_meta() to override in a child theme.

since: Twenty Thirteen 1.0

twentythirteen_entry_date( $display = true )   X-Ref
Print HTML with date information for current post.

Create your own twentythirteen_entry_date() to override in a child theme.

since: Twenty Thirteen 1.0
return: string The HTML-formatted post date.
param: bool $display (optional) Whether to display the date. Default true.

twentythirteen_the_attached_image()   X-Ref
Print the attached image with a link to the next attached image.

since: Twenty Thirteen 1.0

twentythirteen_get_link_url()   X-Ref
Return the post URL.

since: Twenty Thirteen 1.0
return: string The Link format URL.

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

since: Twenty Thirteen 1.4
return: string Filtered Read More excerpt link.
param: string $more Default Read More excerpt link.

twentythirteen_body_class( $classes )   X-Ref
Extend the default WordPress body classes.

Adds body classes to denote:
1. Single or multiple authors.
2. Active widgets in the sidebar to change the layout and spacing.
3. When avatars are disabled in discussion settings.

since: Twenty Thirteen 1.0
return: array The filtered body class list.
param: array $classes A list of existing body class values.

twentythirteen_content_width()   X-Ref
Adjust content_width value for video post formats and attachment templates.

since: Twenty Thirteen 1.0

twentythirteen_customize_register( $wp_customize )   X-Ref
Add postMessage support for site title and description for the Customizer.

since: Twenty Thirteen 1.0
param: WP_Customize_Manager $wp_customize Customizer object.

twentythirteen_customize_partial_blogname()   X-Ref
Render the site title for the selective refresh partial.

since: Twenty Thirteen 1.9
return: void

twentythirteen_customize_partial_blogdescription()   X-Ref
Render the site tagline for the selective refresh partial.

since: Twenty Thirteen 1.9
return: void

twentythirteen_customize_preview_js()   X-Ref
Enqueue JavaScript postMessage handlers for the Customizer.

Binds JavaScript handlers to make the Customizer preview
reload changes asynchronously.

since: Twenty Thirteen 1.0

twentythirteen_widget_tag_cloud_args( $args )   X-Ref
Modifies tag cloud widget arguments to display all tags in the same font size
and use list format for better accessibility.

since: Twenty Thirteen 2.3
return: array The filtered arguments for tag cloud widget.
param: array $args Arguments for tag cloud widget.

twentythirteen_author_bio_template( $template )   X-Ref
Prevents `author-bio.php` partial template from interfering with rendering
an author archive of a user with the `bio` username.

since: Twenty Thirteen 3.0
return: string Replacement template file.
param: string $template Template file.

wp_body_open()   X-Ref
Fire the wp_body_open action.

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

since: Twenty Thirteen 2.8

twentythirteen_register_block_styles()   X-Ref
Register Custom Block Styles

since: Twenty Thirteen 3.4

Generated: Thu Jun 20 01:00:02 2024 Cross-referenced by PHPXref 0.7.1