get_theme_support()获取一个主题或者插件支持的功能

目录

描述

Allows a theme or plugin to get support of a certain theme feature.

get_theme_support() 描述

用法

<?php get_theme_support$feature ); ?>

get_theme_support() 用法

参数

$feature

(string) (必填) Name for the feature being added.

默认值: None

Features list:

  • Sidebar Widgets
  • Navigation Menus
  • Post Formats
  • Post Thumbnails
  • Custom Backgrounds
  • Custom Headers
  • Automatic Feed Links
  • Editor Style

See Theme Features for more information.

get_theme_support() 参数

源文件

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

get_theme_support() 源文件

相关