发布时间:2020-09-17
WordPress 常用函数 / remove_theme_support,
允许主题移除支持特定的功能。
这个函数应该在主题的 functions.php 文件中调用,一般是用于子主题(Child Theme)移除父主题(Parent Theme)的功能。
<?php remove_theme_support( $feature ); ?>
$feature
(string) (required) 要移除的主题功能的名称。
Default: None
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script>
(bool)
如果移除成功返回 true,否则返回 false。
Since 3.0.0
wp-includes/theme.php
全站搜索