Constructor.
Parameters
$post_type
stringrequired- Post type to register fields for.
Source
public function __construct( $post_type ) {
$this->post_type = $post_type;
}
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |
CARVIEW |
Constructor.
$post_type
stringrequiredpublic function __construct( $post_type ) {
$this->post_type = $post_type;
}
Used by | Description |
---|---|
WP_REST_Revisions_Controller::__construct()wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php | Constructor. |
WP_REST_Posts_Controller::__construct()wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php | Constructor. |
Version | Description |
---|---|
4.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.