WordPress at a glance
function is not described

WP_REST_Post_Search_Handler::__construct() WP 5.0.0

Constructor.

This is a method of the class: WP_REST_Post_Search_Handler

No Hooks.

Return

Null. Nothing.

Usage

$WP_REST_Post_Search_Handler = new WP_REST_Post_Search_Handler();
$var = $WP_REST_Post_Search_Handler->__construct();

Changelog

Since 5.0.0 Introduced.

Code of WP REST Post Search Handler:: construct: wp-includes/rest-api/search/class-wp-rest-post-search-handler.php WP 5.2.2

<?php
public function __construct() {
	$this->type = 'post';

	// Support all public post types except attachments.
	$this->subtypes = array_diff(
		array_values(
			get_post_types(
				array(
					'public'       => true,
					'show_in_rest' => true,
				),
				'names'
			)
		),
		array( 'attachment' )
	);
}