current_theme_info

函数
current_theme_info ( No parameters )
返回值
  • (WP_Theme)
相关
  • wp_get_theme()
定义位置
相关方法
current_theme_supportsget_current_themecurrent_timecurrent_datetimecurrent_action
引入
2.0.0
弃用
3.4.0

current_theme_info: 这个函数返回一个关于当前主题的信息数组,包括主题名称、版本、作者和描述。

检索关于当前激活主题的信息。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function current_theme_info() {
_deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' );
return wp_get_theme();
}
function current_theme_info() { _deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' ); return wp_get_theme(); }
function current_theme_info() {
	_deprecated_function( __FUNCTION__, '3.4.0', 'wp_get_theme()' );

	return wp_get_theme();
}

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-04 17:32:32

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: