WordPress at a glance
function is not described

wc_sanitize_endpoint_slug() WC 3.5.0

Format the endpoint slug, strip out anything not allowed in a url.

No Hooks.

Return

String. Nothing.

Usage

wc_sanitize_endpoint_slug( $raw_value );
$raw_value(string) (required)
The raw value.

Changelog

Since 3.5.0 Introduced.

Code of wc_sanitize_endpoint_slug() WC 5.3.0

<?php
function wc_sanitize_endpoint_slug( $raw_value ) {
	return sanitize_title( $raw_value );
}