at path:
ROOT
/
wp-content
/
themes
/
twentytwentytwo
/
functions.php
run:
R
W
Run
assets
DIR
2025-12-13 10:14:11
R
W
Run
inc
DIR
2025-12-13 10:17:33
R
W
Run
parts
DIR
2025-12-13 10:17:34
R
W
Run
styles
DIR
2025-12-13 10:17:34
R
W
Run
templates
DIR
2025-12-13 10:17:34
R
W
Run
contributing.txt
1.24 KB
2025-12-04 01:11:17
R
W
Run
Delete
Rename
functions.php
1.46 KB
2025-12-04 01:11:17
R
W
Run
Delete
Rename
index.php
215 By
2025-12-04 01:11:17
R
W
Run
Delete
Rename
package-lock.json
52.91 KB
2025-12-04 01:11:17
R
W
Run
Delete
Rename
package.json
774 By
2025-12-04 01:11:17
R
W
Run
Delete
Rename
readme.txt
6.04 KB
2025-12-04 01:11:17
R
W
Run
Delete
Rename
screenshot.png
156.75 KB
2025-12-04 01:11:17
R
W
Run
Delete
Rename
style.css
6.34 KB
2025-12-04 01:11:17
R
W
Run
Delete
Rename
style.min.css
2.44 KB
2025-12-04 01:11:17
R
W
Run
Delete
Rename
theme.json
9.53 KB
2025-12-04 01:11:17
R
W
Run
Delete
Rename
error_log
up
📄
functions.php
Save
<?php /** * 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';