[ Index ] |
PHP Cross Reference of WordPress |
[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: | 899 lines (27 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
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. return: string Font stylesheet or empty string if disabled. since: Twenty Thirteen 1.0 |
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. 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. since: Twenty Thirteen 2.1 |
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. return: string The filtered title. param: string $title Default title text for current view. param: string $sep Optional separator. since: Twenty Thirteen 1.0 |
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. return: string The HTML-formatted post date. param: bool $display (optional) Whether to display the date. Default true. since: Twenty Thirteen 1.0 |
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. return: string The Link format URL. since: Twenty Thirteen 1.0 |
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. since: Twenty Thirteen 1.4 |
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. return: array The filtered body class list. param: array $classes A list of existing body class values. since: Twenty Thirteen 1.0 |
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. param: WP_Customize_Manager $wp_customize Customizer object. since: Twenty Thirteen 1.0 |
twentythirteen_customize_partial_blogname() X-Ref |
Render the site title for the selective refresh partial. return: void since: Twenty Thirteen 1.9 |
twentythirteen_customize_partial_blogdescription() X-Ref |
Render the site tagline for the selective refresh partial. return: void since: Twenty Thirteen 1.9 |
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. return: array The filtered arguments for tag cloud widget. param: array $args Arguments for tag cloud widget. since: Twenty Thirteen 2.3 |
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. since: Twenty Thirteen 3.0 |
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 Nov 21 01:00:03 2024 | Cross-referenced by PHPXref 0.7.1 |