百度 | 神马 | 搜狗 | 技术文档 | 学习资料分享 - 记录帝国CMS及运维技术的点点滴滴
你的位置:首页 > 实用IT技术 » 正文

【Wordpress相关】WordPress 常用函数 / remove_theme_support

发布时间: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

Top