Sponsored Link
現在のテーマ名を取得します。
Sponsored Link
Retrieve the name of the current theme.
get_current_themeのファンクションタグ使用方法
<?php get_current_theme() ?>
get_current_themeのパラメーター
None.
返り値
(string) テンプレート名
(string)
Template name.
例
現在のテーマ名
現在のテーマ名を取得します。
Get the name of the current theme.
<?php $theme_name = get_current_theme(); echo $theme_name; ?>
注釈
- 使用方法: apply_filters()は、テンプレート名とテンプレートディレクトリーパス上の’template_directory’フィルターを呼び出します。
- Uses: apply_filters() Calls ‘template_directory’ filter on template directory path and template name.
変更ログ
Since: 1.5.0
ソースファイル
get_current_theme()は、wp-includes/theme.php内に位置しています。
get_current_theme() is located in wp-includes/theme.php.
関連ファンクションタグ
get_stylesheet_directory