Server IP : 149.255.58.128 / Your IP : 216.73.216.199
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /home/wheelch2/public_html/wp-content/themes/twentytwentytwo//functions.php
<?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' ) ) :
/**
* Enqueue 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;
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' );
// Add block patterns
require get_template_directory() . '/inc/block-patterns.php';
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | March 05 2024 12:06:44 | 1032 / wheelch2 | 0755 | |
assets | -- | May 29 2023 22:38:19 | 1032 / wheelch2 | 0755 | |
inc | -- | May 29 2023 22:38:19 | 1032 / wheelch2 | 0755 | |
parts | -- | May 29 2023 22:38:19 | 1032 / wheelch2 | 0755 | |
styles | -- | May 29 2023 22:38:19 | 1032 / wheelch2 | 0755 | |
templates | -- | May 29 2023 22:38:19 | 1032 / wheelch2 | 0755 | |
| | | | | |
functions.php | 1.368 KB | September 08 2023 14:33:22 | 1032 / wheelch2 | 0644 | |
index.php | 0.21 KB | September 07 2023 19:29:22 | 1032 / wheelch2 | 0644 | |
readme.txt | 4.661 KB | November 06 2023 21:05:20 | 1032 / wheelch2 | 0644 | |
screenshot.png | 158.486 KB | November 10 2021 02:32:02 | 1032 / wheelch2 | 0644 | |
style.css | 5.847 KB | November 06 2023 21:05:20 | 1032 / wheelch2 | 0644 | |
theme.json | 9.477 KB | April 26 2022 19:56:12 | 1032 / wheelch2 | 0644 | |