GC_Filesystem_Base::gc_themes_dir()
最后更新于:2021-11-27 17:30:24
GC_Filesystem_Base::gc_themes_dir( string|false$theme=false)响应s the path on the remote filesystem of the Themes Directory.
参数
- $theme
-
(string|false) (Optional) The theme stylesheet or template for the directory.
Default value: false
响应
(string) The location of the remote path.
源文件
文件: gc-admin/includes/class-gc-filesystem-base.php
public function gc_themes_dir( $theme = false ) {
$theme_root = get_theme_root( $theme );
// Account for relative theme roots.
if ( '/themes' === $theme_root || ! is_dir( $theme_root ) ) {
$theme_root = GC_CONTENT_DIR . $theme_root;
}
return $this->find_folder( $theme_root );
}