Constructor.
$post_typestringoptional
Default:'wp_global_styles'
public function __construct( $post_type = 'wp_global_styles' ) {
parent::__construct( $post_type );
}
| 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