WP_REST_Global_Styles_Controller::__construct
Constructor.
Method of the class: WP_REST_Global_Styles_Controller{}
No Hooks.
Returns
null. Nothing (null).
Usage
$WP_REST_Global_Styles_Controller = new WP_REST_Global_Styles_Controller(); $WP_REST_Global_Styles_Controller->__construct( $post_type );
- $post_type(string)
- Post type.
Default:'wp_global_styles'
Changelog
| Since 6.6.0 | Introduced. |
WP_REST_Global_Styles_Controller::__construct() WP REST Global Styles Controller:: construct code WP 7.0
public function __construct( $post_type = 'wp_global_styles' ) {
parent::__construct( $post_type );
}