[ Index ] |
PHP Cross Reference of WordPress |
[Source view] [Print] [Project Stats]
Custom template tags for this theme.
File Size: | 834 lines (23 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
twentytwenty_site_logo( $args = array() X-Ref |
Displays the site logo, either text or image. param: array $args Arguments for displaying the site logo either as an image or text. param: bool $display Display or return the HTML. return: string Compiled HTML based on our arguments. since: Twenty Twenty 1.0 |
twentytwenty_site_description( $display = true ) X-Ref |
Displays the site description. param: bool $display Display or return the HTML. return: string The HTML to display. since: Twenty Twenty 1.0 |
twentytwenty_is_comment_by_post_author( $comment = null ) X-Ref |
Checks if the specified comment is written by the author of the post commented on. param: object $comment Comment data. return: bool since: Twenty Twenty 1.0 |
twentytwenty_filter_comment_reply_link( $link ) X-Ref |
Filters comment reply link to not JS scroll. Filter the comment reply link to add a class indicating it should not use JS slow-scroll, as it makes it scroll to the wrong position on the page. param: string $link Link to the top of the page. return: string Link to the top of the page. since: Twenty Twenty 1.0 |
twentytwenty_the_post_meta( $post_id = null, $location = 'single-top' ) X-Ref |
Retrieves and displays the post meta. If it's a single post, outputs the post meta values specified in the Customizer settings. param: int $post_id The ID of the post for which the post meta should be output. param: string $location Which post meta location to output – single or preview. since: Twenty Twenty 1.0 |
twentytwenty_edit_post_link( $link, $post_id, $text ) X-Ref |
Filters the edit post link to add an icon and use the post meta structure. param: string $link Anchor tag for the edit link. param: int $post_id Post ID. param: string $text Anchor text. since: Twenty Twenty 1.0 |
twentytwenty_get_post_meta( $post_id = null, $location = 'single-top' ) X-Ref |
Retrieves the post meta. param: int $post_id The ID of the post. param: string $location The location where the meta is shown. since: Twenty Twenty 1.0 |
twentytwenty_filter_wp_list_pages_item_classes( $css_class, $page, $depth, $args, $current_page ) X-Ref |
Filters classes of wp_list_pages items to match menu items. Filter the class applied to wp_list_pages() items with children to match the menu class, to simplify. styling of sub levels in the fallback. Only applied if the match_menu_classes argument is set. param: string[] $css_class An array of CSS classes to be applied to each list item. param: WP_Post $page Page data object. param: int $depth Depth of page, used for padding. param: array $args An array of arguments. param: int $current_page ID of the current page. return: array CSS class names. since: Twenty Twenty 1.0 |
twentytwenty_add_sub_toggles_to_main_menu( $args, $item, $depth ) X-Ref |
Adds a Sub Nav Toggle to the Expanded Menu and Mobile Menu. param: stdClass $args An object of wp_nav_menu() arguments. param: WP_Post $item Menu item data object. param: int $depth Depth of menu item. Used for padding. return: stdClass An object of wp_nav_menu() arguments. since: Twenty Twenty 1.0 |
twentytwenty_nav_menu_social_icons( $item_output, $item, $depth, $args ) X-Ref |
Displays SVG icons in social links menu. 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. return: string The menu item output with social icon. since: Twenty Twenty 1.0 |
twentytwenty_no_js_class() X-Ref |
Adds 'no-js' class. If we're missing JavaScript support, the HTML element will have a 'no-js' class. since: Twenty Twenty 1.0 |
twentytwenty_body_classes( $classes ) X-Ref |
Adds conditional body classes. param: array $classes Classes added to the body tag. return: array Classes added to the body tag. since: Twenty Twenty 1.0 |
twentytwenty_get_the_archive_title( $title ) X-Ref |
Filters the archive title and styles the word before the first colon. param: string $title Current archive title. return: string Current archive title. since: Twenty Twenty 1.0 |
twentytwenty_toggle_duration() X-Ref |
Toggles animation duration in milliseconds. return: int Duration in milliseconds since: Twenty Twenty 1.0 |
twentytwenty_unique_id( $prefix = '' ) X-Ref |
Gets unique ID. This is a PHP implementation of Underscore's uniqueId method. A static variable contains an integer that is incremented with each call. This number is returned with the optional prefix. As such the returned value is not universally unique, but it is unique across the life of the PHP process. param: string $prefix Prefix for the returned ID. return: string Unique ID. since: Twenty Twenty 1.0 |
Generated: Fri Jul 26 01:00:02 2024 | Cross-referenced by PHPXref 0.7.1 |