Used By
Used By | Description |
---|---|
wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php: WP_REST_Posts_Controller::__construct() | Constructor. |
Constructor.
(string) (Required) Post type to register fields for.
File: wp-includes/rest-api/fields/class-wp-rest-post-meta-fields.php
public function __construct( $post_type ) { $this->post_type = $post_type; }
Version | Description |
---|---|
4.7.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_post_meta_fields/__construct