WordPress at Your Fingertips
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.

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 6.1.1

function wc_sanitize_endpoint_slug( $raw_value ) {
	return sanitize_title( $raw_value );
}