get( 'Version' ); $version_string = is_string( $theme_version ) ? $theme_version : false; wp_register_style( 'twentytwentytwo-style', get_template_directory_uri() . '/style.css', array(), $version_string ); // Enqueue theme stylesheet. wp_enqueue_style( 'twentytwentytwo-style' ); } endif; add_action( 'wp_enqueue_scripts', 'twentytwentytwo_styles' ); if ( ! function_exists( 'twentytwentytwo_preload_webfonts' ) ) : /** * Preloads the main web font to improve performance. * * Only the main web font (font-style: normal) is preloaded here since that font is always relevant (it is used * on every heading, for example). The other font is only needed if there is any applicable content in italic style, * and therefore preloading it would in most cases regress performance when that font would otherwise not be loaded * at all. * * @since Twenty Twenty-Two 1.0 * * @return void */ function twentytwentytwo_preload_webfonts() { ?>