WP_Post_Type::remove_supports
Removes the features support for the post type.
Method of the class: WP_Post_Type{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_Post_Type = new WP_Post_Type(); $WP_Post_Type->remove_supports();
Notes
- Global. Array.
$_wp_post_type_featuresPost type features.
Changelog
| Since 4.6.0 | Introduced. |
WP_Post_Type::remove_supports() WP Post Type::remove supports code WP 6.9.1
public function remove_supports() {
global $_wp_post_type_features;
unset( $_wp_post_type_features[ $this->name ] );
}