WP_REST_Post_Meta_Fields::__construct()
Constructor.
Method of the class: WP_REST_Post_Meta_Fields{}
No Hooks.
Return
null
. Nothing.
Usage
$WP_REST_Post_Meta_Fields = new WP_REST_Post_Meta_Fields(); $WP_REST_Post_Meta_Fields->__construct( $post_type );
- $post_type(string) (required)
- Post type to register fields for.
Changelog
Since 4.7.0 | Introduced. |
WP_REST_Post_Meta_Fields::__construct() WP REST Post Meta Fields:: construct code WP 6.1.1
public function __construct( $post_type ) { $this->post_type = $post_type; }