This page redirects to an external site: https://developer.wordpress.org/reference/functions/get_stylesheet_directory/
현재 사용중인 테마 혹은 차일드 테마의 stylesheet 디렉토리의 경로를 반환합니다. (즉 현재 테마의 절대 경로)
Note: 맨 끝에 슬래쉬를 포함하지 않습니다.
서버의 절대 경로를 반환합니다.(예: /home/user/public_html/wp-content/themes/my_theme), URI 가 아닙니다.
스타일시트가 있는 디렉토리의 URI 를 얻고 싶다면get_stylesheet_directory_uri() 함수를 사용하세요.
<?php get_stylesheet_directory() ?>
없음.
PHP 파일 참조
<?php include( get_stylesheet_directory() . '/includes/myfile.php'); ?>
get_stylesheet_directory() is located in wp-includes/theme.php.
Theme paths: get_template(), get_template_directory(), get_template_directory_uri(), get_theme_roots(), get_theme_root(), get_theme_root_uri(), get_stylesheet(), get_stylesheet_uri(), get_stylesheet_directory(), get_stylesheet_directory_uri(), get_bloginfo(), get_theme_file_uri(), get_theme_file_path()