WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

zh-cn:函数参考/get theme support

Contents

描述

获得当前支持的主题特性.

使用方法

<?php get_theme_support$feature ); ?>

参数解释

$feature
(string) (required) 需要查询的特性名称。
Default: None

特性列表:

特性解释

参见 Function_Reference/add_theme_support

源文件

get_theme_support() 函数位于 wp-includes/theme.php.

相关

Theme Support: add_theme_support(), remove_theme_support(), current_theme_supports()
Features: sidebar, menus, post-formats, post-thumbnails, custom-background, custom-header, automatic-feed-links, content_width, editor-style, html5

See also index of Function Reference and index of Template Tags.