WP_REST_Controller::sanitize_slug

Advertisement

Summery Summery

Sanitizes the slug value.

Syntax Syntax

WP_REST_Controller::sanitize_slug( string $slug )

Parameters Parameters

$slug

(string) (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

Changelog
Version Description
4.7.0 Introduced.

See also See also

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.