wp-content/themes/twentysixteen/functions.php:399Enqueues scripts and styles.
function twentysixteen_scripts() { // Add custom fonts, used in the main stylesheet. $font_version = ( 0 === strpos( (string) twentysixteen_fonts_url(), get_template_directory_uri() . '/' ) ) ? '20230328' : null; wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), $font_version ); // Add Genericons, used in the main stylesheet. wp_enqueue_style( 'genericons', get_template_directory_uri() . '/genericons/genericons.css', array(), '20251101' ); // Theme stylesheet. wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri(), array(), '20251202' ); // Theme block stylesheet. wp_enqueue_style( 'twentysixteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentysixteen-style' ), '20240817' ); // Register handles for removed stylesheets and scripts. wp_register_style( 'twentysixteen-ie', false, array( 'twentysixteen-style' ) ); wp_register_style( 'twentysixteen-ie8', false, array( 'twentysixteen-style' ) ); wp_register_style( 'twentysixteen-ie7', false, array( 'twentysixteen-style' ) ); wp_register_script( 'twentysixteen-html5', false ); wp_register_script( 'twentysixteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20230526', array( 'in_footer' => true ) ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } if ( is_singular() && wp_attachment_is_image() ) { wp_enqueue_script( 'twentysixteen-keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20170530' ); } wp_enqueue_script( 'twentysixteen-script', get_template_directory_uri() . '/js/functions.js', array( 'jquery' ), '20230629', array( 'in_footer' => false, // Because involves header. 'strategy' => 'defer', ) ); wp_localize_script( 'twentysixteen-script', 'screenReaderText', array( 'expand' => __( 'expand child menu', 'twentysixteen' ), 'collapse' => __( 'collapse child menu', 'twentysixteen' ), ) );}Introduced in Twenty Sixteen 1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-content/themes/twentysixteen/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.