WC_Shipping_Legacy_Local_Pickup::clean
Clean function.
Method of the class: WC_Shipping_Legacy_Local_Pickup{}
No Hooks.
Returns
String.
Usage
$WC_Shipping_Legacy_Local_Pickup = new WC_Shipping_Legacy_Local_Pickup(); $WC_Shipping_Legacy_Local_Pickup->clean( $code );
- $code(mixed) (required)
- Code.
WC_Shipping_Legacy_Local_Pickup::clean() WC Shipping Legacy Local Pickup::clean code WC 10.9.1
public function clean( $code ) {
return str_replace( '-', '', sanitize_title( $code ) ) . ( strstr( $code, '*' ) ? '*' : '' );
}