Summery Summery
Sanitizes the slug value.
Syntax Syntax
Parameters Parameters
- $slug
-
(Required) Slug value passed in request.
Return Return
(string) Sanitized value for the slug.
Source Source
File: wp-includes/rest-api/endpoints/class-wp-rest-controller.php
Advertisement
Changelog Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |