WC_Shipping_Legacy_Local_Pickup::clean( mixed $code )

Clean function.


Description Description


Parameters Parameters

$code

(Required) Code.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/shipping/legacy-local-pickup/class-wc-shipping-legacy-local-pickup.php

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


Top ↑

User Contributed Notes User Contributed Notes

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