W3cubDocs

/WordPress

WP_REST_Themes_Controller::_sanitize_stylesheet_callback( string $stylesheet ): string

Sanitize the stylesheet to decode endpoint.

Parameters

$stylesheetstringrequired
The stylesheet name.

Return

string Sanitized stylesheet.

Source

public function _sanitize_stylesheet_callback( $stylesheet ) {
	return urldecode( $stylesheet );
}

Changelog

Version Description
5.9.0 Introduced.

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