• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
WordPress a2z

WordPress a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Themes
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / Files / inc/template-tags.php


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. */
[1] [2] Next »

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      File name: inc/template-tags.php
      Plugin ref: Twenty Twenty
      Version: 2.1
      Deprecated?: No
      API Letters: I,P,T

      Published: 25th November 2019 | Last updated: 9th June 2022

      Primary Sidebar

      Information

      File name: inc/template-tags.php
      Plugin ref: Twenty Twenty
      Version: 2.1
      Deprecated?: No
      API Letters: I,P,T

      inc

      Footer

      WordPress a2z
      WordPress a2z
      WordPress Dynamic API Reference
      WordPress 6.1.1. PHP: 8.0.28
      WordPress a2z
      WordPress core a2z
      Genesis Theme Framework a2z
      Jetpack a2z
      WordPress develop tests
      Easy Digital Downloads a2z
      WooCommerce a2z
      Yoast SEO a2z
      WordPress Blocks

      Site:  wp-a2z.org
      © Copyright WordPress a2z 2014-2023. All rights reserved.


      Website designed and developed by Herb Miller
      Proudly powered by WordPress and oik plugins

      • Home
      • Blog
      • Sitemap
      • Sites