WP_Post_Type::remove_supports()publicWP 4.6.0

Removes the features support for the post type.

Method of the class: WP_Post_Type{}

No Hooks.

Return

null. Nothing (null).

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.

WP_Post_Type::remove_supports() code WP 6.6.2

public function remove_supports() {
	global $_wp_post_type_features;

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