• 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 / functions.php


Lines:

1 to 99 of 99
<?php

/**
 * Twenty Nineteen functions and definitions
 *
 * @link https://developer.wordpress.org/themes/basics/theme-functions/
 *
 * @package WordPress
 * @subpackage Twenty_Nineteen
 * @since Twenty Nineteen 1.0
 */


/**
 * Twenty Nineteen only works in WordPress 4.7 or later.
 */
if ( version_compare( $GLOBALS['wp_version'], '4.7', '<' ) ) {
  require get_template_directory() . '/inc/back-compat.php';
  return;
}

if ( ! function_exists( 'twentynineteen_setup' ) ) :
/* function twentynineteen_setup() – Sets up theme defaults and registers support for various WordPress features. */
endif;
add_action( 'after_setup_theme', 'twentynineteen_setup' );

if ( ! function_exists( 'wp_get_list_item_separator' ) ) :
/* function wp_get_list_item_separator() – Retrieves the list item separator based on the locale. */
endif;

/* function twentynineteen_widgets_init() – Register widget area. */
add_action( 'widgets_init', 'twentynineteen_widgets_init' );

/* function twentynineteen_excerpt_more() – Replaces "[. */
add_filter( 'excerpt_more', 'twentynineteen_excerpt_more' );

/* function twentynineteen_content_width() – Set the content width in pixels, based on the theme’s design and stylesheet. */
add_action( 'after_setup_theme', 'twentynineteen_content_width', 0 );

/* function twentynineteen_scripts() – Enqueue scripts and styles. */
add_action( 'wp_enqueue_scripts', 'twentynineteen_scripts' );

/* function twentynineteen_skip_link_focus_fix() – Fix skip link focus in IE11. */
add_action( 'wp_print_footer_scripts', 'twentynineteen_skip_link_focus_fix' );

/* function twentynineteen_editor_customizer_styles() – Enqueue supplemental block editor styles. */
add_action( 'enqueue_block_editor_assets', 'twentynineteen_editor_customizer_styles' );

/* function twentynineteen_colors_css_wrap() – Display custom color CSS in customizer and on frontend. */
add_action( 'wp_head', 'twentynineteen_colors_css_wrap' );


/**
 * SVG Icons class.
 */
require get_template_directory() . '/classes/class-twentynineteen-svg-icons.php';


/**
 * Custom Comment Walker template.
 */
require get_template_directory() . '/classes/class-twentynineteen-walker-comment.php';


/**
 * Common theme functions.
 */
require get_template_directory() . '/inc/helper-functions.php';


/**
 * SVG Icons related functions.
 */
require get_template_directory() . '/inc/icon-functions.php';


/**
 * Enhance the theme by hooking into WordPress.
 */
require get_template_directory() . '/inc/template-functions.php';


/**
 * Custom template tags for the theme.
 */
require get_template_directory() . '/inc/template-tags.php';


/**
 * Customizer additions.
 */
require get_template_directory() . '/inc/customizer.php';


/**
 * Block Patterns.
 */
require get_template_directory() . '/inc/block-patterns.php';
 

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      File name: functions.php
      Plugin ref: Twenty Nineteen
      Version: 2.4
      Deprecated?: No
      API Letters: F,P

      Published: 25th November 2019 | Last updated: 2nd November 2022

      Primary Sidebar

      Information

      File name: functions.php
      Plugin ref: Twenty Nineteen
      Version: 2.4
      Deprecated?: No
      API Letters: F,P

      Footer

      WordPress a2z
      WordPress a2z
      WordPress Dynamic API Reference
      WordPress 6.1.1. PHP: 8.0.27
      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