remove_post_type_support()
remove_post_type_support( string $post_type, string $fe…
remove_post_type_support( string $post_type, string $feature )
从支柱类型中删除对要素的支持。
Remove support for a feature from a post type.
从支柱类型中删除对要素的支持。
Remove support for a feature from a post type.
目录锚点:#参数#返回#源码#笔记
参数(Parameters)
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| $post_type | (string) | 必需 | 要删除其功能的日志类型。 |
| $feature | (string) | 必需 | 正在删除的功能。 |
返回(Return)
无返回值
源码(Source)
/**
* Remove support for a feature from a post type.
*
* @since 3.0.0
*
* @global array $_wp_post_type_features
*
* @param string $post_type The post type for which to remove the feature.
* @param string $feature The feature being removed.
*/
function remove_post_type_support( $post_type, $feature ) {
global $_wp_post_type_features;
unset( $_wp_post_type_features[ $post_type ][ $feature ] );
}| 更新版本 | 源码位置 | 使用 | 被使用 |
|---|---|---|---|
| 3.0.0 | wp-includes/post.php:1876 | 0 | 0 |
笔记(Notes)
删除对摘录的支持
删除对post格式的支持
如果选择了某些模板,则隐藏页面可视化编辑器:
类别:WordPress 函数手册、
本文收集自互联网,转载请注明来源。
如有侵权,请联系 wper_net@163.com 删除。

还没有任何评论,赶紧来占个楼吧!