WP_Post_Type::add_supports()

Sets the features support for the post type.


Source

File: wp-includes/class-wp-post-type.php

	public function add_supports() {
		if ( ! empty( $this->supports ) ) {
			add_post_type_support( $this->name, $this->supports );
			unset( $this->supports );
		} elseif ( false !== $this->supports ) {
			// Add default features.
			add_post_type_support( $this->name, array( 'title', 'editor' ) );
		}
	}


Changelog

Changelog
Version Description
WP-4.6.0 Introduced.