WordPress at Your Fingertips
function is not described

WC_Shipping_Legacy_Local_Pickup::clean() public WC 1.0

Clean function.

{} It's a method of the class: WC_Shipping_Legacy_Local_Pickup{}

No Hooks.

Return

String.

Usage

$WC_Shipping_Legacy_Local_Pickup = new WC_Shipping_Legacy_Local_Pickup();
$WC_Shipping_Legacy_Local_Pickup->clean( $code );
$code(mixed) (required)
Code.

Code of WC_Shipping_Legacy_Local_Pickup::clean() WC 5.9.0

public function clean( $code ) {
	return str_replace( '-', '', sanitize_title( $code ) ) . ( strstr( $code, '*' ) ? '*' : '' );
}