HEX
Server: Apache
System: FreeBSD www860.sakura.ne.jp 13.0-RELEASE-p14 FreeBSD 13.0-RELEASE-p14 #2: Mon Dec 9 13:54:55 JST 2024 root@www5301.sakura.ne.jp:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
User: yoyo0427 (1306)
PHP: 8.3.8
Disabled: NONE
Upload Files
File: /home/yoyo0427/www/www.yn-artspace.com/wp-content/themes/goldy-studio/functions.php
<?php
/**
 * goldy studio functions and definitions
 *
 * @link https://developer.wordpress.org/themes/basics/theme-functions/
 *
 * @package goldy studio
 */

if ( ! defined( '_GOLDY_Studio_VERSION' ) ) {
	// Replace the version number of the theme on each release.
	define( '_GOLDY_Studio_VERSION', '1.0.0' );
}

function goldy_Studio_wpdocs_setup_theme() {
   add_theme_support( 'title-tag' );
   add_theme_support( 'automatic-feed-links' );
}
add_action( 'after_setup_theme', 'goldy_Studio_wpdocs_setup_theme' );


/* enqueue script for parent theme stylesheeet */        
function goldy_Studio_childtheme_parent_styles() {

   // enqueue style
  wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
  wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array( 'goldy-Studio' ) );
}
add_action( 'wp_enqueue_scripts', 'goldy_Studio_childtheme_parent_styles');

require get_stylesheet_directory() . '/inc/init-variable.php';
require get_stylesheet_directory() . '/inc/init-hook.php';