wc_sanitize_endpoint_slug( string $raw_value )

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


Description Description


Parameters Parameters

$raw_value

(Required) The raw value.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/wc-formatting-functions.php

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

Top ↑

Changelog Changelog

Changelog
Version Description
3.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.