[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
Twenty Fifteen functions and definitions Set 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: | 658 lines (21 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
twentyfifteen_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. since: Twenty Fifteen 1.0 |
twentyfifteen_widgets_init() X-Ref |
Register widget area. since: Twenty Fifteen 1.0 |
twentyfifteen_fonts_url() X-Ref |
Register Google fonts for Twenty Fifteen. return: string Google fonts URL for the theme. since: Twenty Fifteen 1.0 |
twentyfifteen_javascript_detection() X-Ref |
JavaScript Detection. Adds a `js` class to the root `<html>` element when JavaScript is detected. since: Twenty Fifteen 1.1 |
twentyfifteen_scripts() X-Ref |
Enqueue scripts and styles. since: Twenty Fifteen 1.0 |
twentyfifteen_block_editor_styles() X-Ref |
Enqueue styles for the block-based editor. since: Twenty Fifteen 2.1 |
twentyfifteen_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 Fifteen 1.7 |
twentyfifteen_post_nav_background() X-Ref |
Add featured image as background image to post navigation elements. since: Twenty Fifteen 1.0 |
twentyfifteen_nav_description( $item_output, $item, $depth, $args ) X-Ref |
Display descriptions in main navigation. return: string Menu item with possible description. param: string $item_output The menu item's starting HTML output. param: WP_Post $item Menu item data object. param: int $depth Depth of the menu. Used for padding. param: stdClass $args An object of wp_nav_menu() arguments. since: Twenty Fifteen 1.0 |
twentyfifteen_search_form_modify( $html ) X-Ref |
Add a `screen-reader-text` class to the search form's submit button. return: string Modified search form HTML. param: string $html Search form HTML. since: Twenty Fifteen 1.0 |
twentyfifteen_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 Fifteen 1.9 |
twentyfifteen_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 Fifteen 2.6 |
Generated: Thu Nov 21 01:00:03 2024 | Cross-referenced by PHPXref 0.7.1 |