Lines:
1 to 100 of 103
<?php /** * Custom template tags for this theme. * * @package WordPress * @subpackage Twenty_Twenty * @since Twenty Twenty 1.0 */ /** * Table of Contents: * Logo & Description * Comments * Post Meta * Menus * Classes * Archives * Miscellaneous */ /** * Logo & Description */ /* function twentytwenty_site_logo() – Displays the site logo, either text or image. */ /* function twentytwenty_site_description() – Displays the site description. */ /** * Comments */ /* function twentytwenty_is_comment_by_post_author() – Check if the specified comment is written by the author of the post commented on. */ /* function twentytwenty_filter_comment_reply_link() – Filter comment reply link to not JS scroll. */ add_filter( 'comment_reply_link', 'twentytwenty_filter_comment_reply_link' ); /** * Post Meta */ /* function twentytwenty_the_post_meta() – Get and Output Post Meta. */ /* function twentytwenty_edit_post_link() – Filters the edit post link to add an icon and use the post meta structure. */ add_filter( 'edit_post_link', 'twentytwenty_edit_post_link', 10, 3 ); /* function twentytwenty_get_post_meta() – Retrieves the post meta. */ /** * Menus */ /* function twentytwenty_filter_wp_list_pages_item_classes() – Filters classes of wp_list_pages items to match menu items. */ add_filter( 'page_css_class', 'twentytwenty_filter_wp_list_pages_item_classes', 10, 5 ); /* function twentytwenty_add_sub_toggles_to_main_menu() – Add a Sub Nav Toggle to the Expanded Menu and Mobile Menu. */ add_filter( 'nav_menu_item_args', 'twentytwenty_add_sub_toggles_to_main_menu', 10, 3 ); /* function twentytwenty_nav_menu_social_icons() – Display SVG icons in social links menu. */ add_filter( 'walker_nav_menu_start_el', 'twentytwenty_nav_menu_social_icons', 10, 4 ); /** * Classes */ /* function twentytwenty_no_js_class() – Add No-JS Class. */ add_action( 'wp_head', 'twentytwenty_no_js_class' ); /* function twentytwenty_body_classes() – Add conditional body classes. */ add_filter( 'body_class', 'twentytwenty_body_classes' ); /** * Archives */ /* function twentytwenty_get_the_archive_title() – Filters the archive title and styles the word before the first colon. */ add_filter( 'get_the_archive_title', 'twentytwenty_get_the_archive_title' ); /** * Miscellaneous */ /* function twentytwenty_toggle_duration() – Toggles animation duration in milliseconds. */