WordPress at a glance
function is not described

WP_Post_Type::add_supports() public WP 4.6.0

Sets the features support for the post type.

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

No Hooks.

Return

````. Null. Nothing.

Usage

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

Changelog

Since 4.6.0 Introduced.

Code of WP_Post_Type::add_supports() WP 5.7

<?php
public function add_supports() {
	if ( ! empty( $this->supports ) ) {
		foreach ( $this->supports as $feature => $args ) {
			if ( is_array( $args ) ) {
				add_post_type_support( $this->name, $feature, $args );
			} else {
				add_post_type_support( $this->name, $args );
			}
		}
		unset( $this->supports );
	} elseif ( false !== $this->supports ) {
		// Add default features.
		add_post_type_support( $this->name, array( 'title', 'editor' ) );
	}
}