Sanitizes the slug value.
Description
See also
Parameters
$slugstringrequired- Slug value passed in request.
Source
public function sanitize_slug( $slug ) {
return sanitize_title( $slug );
}
Changelog
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |
Sanitizes the slug value.
$slugstringrequiredpublic function sanitize_slug( $slug ) {
return sanitize_title( $slug );
}
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.