W3cubDocs

/WordPress

WP_REST_Global_Styles_Controller::__construct( string $post_type = ‘wp_global_styles’ )

Constructor.

Parameters

$post_typestringoptional
Post type.

Default:'wp_global_styles'

Source

public function __construct( $post_type = 'wp_global_styles' ) {
	parent::__construct( $post_type );
}

Changelog

Version Description
6.6.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_global_styles_controller/__construct