WordPress at a glance
function is not described

WP_Post_Type::remove_supports() public WP 4.6.0

Removes the features support for the post type.

{} It's a method of the class: WP_Post_Type{}

No Hooks.

Return

null. Null. Nothing.

Usage

$WP_Post_Type = new WP_Post_Type();
$WP_Post_Type->remove_supports();

Notes

  • Global. Array. $_wp_post_type_features Post type features.

Changelog

Since 4.6.0 Introduced.

Code of WP_Post_Type::remove_supports() WP 5.7

<?php
public function remove_supports() {
	global $_wp_post_type_features;

	unset( $_wp_post_type_features[ $this->name ] );
}