wp-content/themes/twentyfourteen/functions.php:62Twenty Fourteen setup.
One hook fires while twentyfourteen_setup() runs, in this order:
Filters Twenty Fourteen custom-background support arguments.
function twentyfourteen_setup() { /* * Make Twenty Fourteen available for translation. * * Translations can be filed at WordPress.org. See: https://translate.wordpress.org/projects/wp-themes/twentyfourteen * If you're building a theme based on Twenty Fourteen, use a find and * replace to change 'twentyfourteen' to the name of your theme in all * template files. * * Manual loading of text domain is not required after the introduction of * just in time translation loading in WordPress version 4.6. * * @ticket 58318 */ if ( version_compare( $GLOBALS['wp_version'], '4.6', '<' ) ) { load_theme_textdomain( 'twentyfourteen' ); } /* * This theme styles the visual editor to resemble the theme style. * When fonts are self-hosted, the theme directory needs to be removed first. */ $font_stylesheet = str_replace( array( get_template_directory_uri() . '/', get_stylesheet_directory_uri() . '/' ), '', (string) twentyfourteen_font_url() ); add_editor_style( array( 'css/editor-style.css', $font_stylesheet, 'genericons/genericons.css' ) ); // Load regular editor styles into the new block-based editor. add_theme_support( 'editor-styles' ); // Load default block styles. add_theme_support( 'wp-block-styles' ); // Add support for responsive embeds. add_theme_support( 'responsive-embeds' ); // Add support for custom color scheme. add_theme_support( 'editor-color-palette', array( array( 'name' => __( 'Green', 'twentyfourteen' ), 'slug' => 'green', 'color' => '#24890d', ), array( 'name' => __( 'Black', 'twentyfourteen' ), 'slug' => 'black', 'color' => '#000', ), array( 'name' => __( 'Dark Gray', 'twentyfourteen' ), 'slug' => 'dark-gray', 'color' => '#2b2b2b', ), array( 'name' => __( 'Medium Gray', 'twentyfourteen' ), 'slug' => 'medium-gray', 'color' => '#767676', ), array( 'name' => __( 'Light Gray', 'twentyfourteen' ), 'slug' => 'light-gray', 'color' => '#f5f5f5', ), array( 'name' => __( 'White', 'twentyfourteen' ), 'slug' => 'white', 'color' => '#fff', ), ) ); // Add RSS feed links to <head> for posts and comments. add_theme_support( 'automatic-feed-links' ); // Enable support for Post Thumbnails, and declare two sizes.Introduced in Twenty Fourteen 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/twentyfourteen/functions.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.