WPDev.one
Core Function
View Source on Trac ↗

add_post_type_support()

add_post_type_support( mixed $post_type, mixed $feature, mixed $args )

Registers support of certain features for a post type.

Parameters 3 required

Name / Type Description
$post_type
string

The post type for which to add the feature.

Required
mixed

(string | array) $feature The feature being added, accepts an array of feature strings or a single string.

Required
mixed

...$args Optional extra arguments to pass along with certain features.

Required

Return Value

(void)
No return value description available.

Function Information

Since Version
3.0.0
Source File
wp-includes/post.php
Advertisement