[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
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: | 940 lines (29 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
twentythirteen_register_block_patterns() X-Ref |
Registers block patterns and pattern categories. |
twentythirteen_setup() X-Ref |
Twenty Thirteen setup. Sets up theme defaults and registers the various WordPress features that Twenty Thirteen supports. |
twentythirteen_fonts_url() X-Ref |
Returns the 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. return: string Font stylesheet or empty string if disabled. |
twentythirteen_scripts_styles() X-Ref |
Enqueues scripts and styles for the front end. |
twentythirteen_resource_hints( $urls, $relation_type ) X-Ref |
Adds preconnect for Google Fonts. 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 |
Enqueues styles for the block-based editor. |
twentythirteen_wp_title( $title, $sep ) X-Ref |
Filters the page title. Creates a nicely formatted and more specific title element text for output in head of document, based on current view. return: string The filtered title. param: string $title Default title text for current view. param: string $sep Optional separator. |
twentythirteen_widgets_init() X-Ref |
Registers two widget areas. |
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. |
twentythirteen_paging_nav() X-Ref |
Displays navigation to next/previous set of posts when applicable. |
twentythirteen_post_nav() X-Ref |
Displays navigation to next/previous post when applicable. |
twentythirteen_entry_meta() X-Ref |
Prints 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. |
twentythirteen_entry_date( $display = true ) X-Ref |
Prints HTML with date information for current post. Create your own twentythirteen_entry_date() to override in a child theme. return: string The HTML-formatted post date. param: bool $display (optional) Whether to display the date. Default true. |
twentythirteen_the_attached_image() X-Ref |
Prints the attached image with a link to the next attached image. |
twentythirteen_get_link_url() X-Ref |
Returns the post URL. return: string The Link format URL. |
twentythirteen_excerpt_more( $more ) X-Ref |
Replaces "[...]" (appended to automatically generated excerpts) with ... and a Continue reading link. return: string Filtered Read More excerpt link. param: string $more Default Read More excerpt link. |
twentythirteen_body_class( $classes ) X-Ref |
Extends 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. return: array The filtered body class list. param: array $classes A list of existing body class values. |
twentythirteen_content_width() X-Ref |
Adjusts content_width value for video post formats and attachment templates. |
twentythirteen_customize_register( $wp_customize ) X-Ref |
Adds postMessage support for site title and description for the Customizer. param: WP_Customize_Manager $wp_customize Customizer object. |
twentythirteen_customize_partial_blogname() X-Ref |
Renders the site title for the selective refresh partial. return: void |
twentythirteen_customize_partial_blogdescription() X-Ref |
Renders the site tagline for the selective refresh partial. return: void |
twentythirteen_customize_preview_js() X-Ref |
Enqueues JavaScript postMessage handlers for the Customizer. Binds JavaScript handlers to make the Customizer preview reload changes asynchronously. |
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. 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. return: string Replacement template file. param: string $template Template file. |
wp_body_open() X-Ref |
Fires the wp_body_open action. Added for backward compatibility to support pre-5.2.0 WordPress versions. |
twentythirteen_register_block_styles() X-Ref |
Registers Custom Block Styles. |
Generated : Wed Aug 13 08:20:01 2025 | Cross-referenced by PHPXref |