/** * Twenty Twenty-Two functions and definitions * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package WordPress * @subpackage Twenty_Twenty_Two * @since Twenty Twenty-Two 1.0 */ if ( ! function_exists( 'twentytwentytwo_support' ) ) : /** * Sets up theme defaults and registers support for various WordPress features. * * @since Twenty Twenty-Two 1.0 * * @return void */ function twentytwentytwo_support() { // Add support for block styles. add_theme_support( 'wp-block-styles' ); // Enqueue editor styles. add_editor_style( 'style.css' ); } endif; add_action( 'after_setup_theme', 'twentytwentytwo_support' ); if ( ! function_exists( 'twentytwentytwo_styles' ) ) : /** * Enqueues styles. * * @since Twenty Twenty-Two 1.0 * * @return void */ function twentytwentytwo_styles() { // Register theme stylesheet. $theme_version = wp_get_theme()->get( 'Version' ); $version_string = is_string( $theme_version ) ? $theme_version : false; $suffix = SCRIPT_DEBUG ? '' : '.min'; $src = 'style' . $suffix . '.css'; wp_enqueue_style( 'twentytwentytwo-style', get_parent_theme_file_uri( $src ), array(), $version_string ); wp_style_add_data( 'twentytwentytwo-style', 'path', get_parent_theme_file_path( $src ) ); } endif; add_action( 'wp_enqueue_scripts', 'twentytwentytwo_styles' ); // Add block patterns. require get_template_directory() . '/inc/block-patterns.php'; Warning: Cannot modify header information - headers already sent by (output started at /home/insigh1fo/arflex.ro/wp-content/themes/twentytwentytwo/functions.php:1) in /home/insigh1fo/arflex.ro/wp-includes/sitemaps/class-wp-sitemaps-renderer.php on line 126 https://arflex.ro/wp-sitemap-posts-post-1.xmlhttps://arflex.ro/wp-sitemap-posts-post-2.xmlhttps://arflex.ro/wp-sitemap-posts-post-3.xmlhttps://arflex.ro/wp-sitemap-posts-post-4.xmlhttps://arflex.ro/wp-sitemap-posts-post-5.xmlhttps://arflex.ro/wp-sitemap-posts-post-6.xmlhttps://arflex.ro/wp-sitemap-posts-post-7.xmlhttps://arflex.ro/wp-sitemap-posts-post-8.xmlhttps://arflex.ro/wp-sitemap-posts-page-1.xmlhttps://arflex.ro/wp-sitemap-taxonomies-category-1.xmlhttps://arflex.ro/wp-sitemap-taxonomies-category-2.xmlhttps://arflex.ro/wp-sitemap-taxonomies-post_tag-1.xmlhttps://arflex.ro/wp-sitemap-taxonomies-post_tag-2.xmlhttps://arflex.ro/wp-sitemap-users-1.xml