函数原型
remove_post_type_support( string $post_type, string $feature )
函数描述
Removes support for a feature from a post type.
是否弃用
未弃用
函数参数
-
$post_type
string
Required - The post type for which to remove the feature.
-
$feature
string
Required - The feature being removed.
函数返回值
无
函数位置
File: wp-includes/post.php.
函数源码
function remove_post_type_support( $post_type, $feature ) {
global $_wp_post_type_features;
unset( $_wp_post_type_features[ $post_type ][ $feature ] );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |

