发布时间:2020-09-17
WordPress 常用函数 / current_theme_supports,
检查主题是否支持给定的功能。
<?php current_theme_supports( $feature ); ?>
$feature
(string) (required) 要添加的主题功能的名称。
目前主题支持的功能列表:
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>
Default: None
(bool)
如果有返回 true,否则返回 false。
Since: 2.9.0
wp-includes/theme.php
全站搜索