WC_Shipping_Legacy_Local_Pickup::clean()
Clean function.
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.
WC_Shipping_Legacy_Local_Pickup::clean() WC Shipping Legacy Local Pickup::clean code WC 9.4.2
public function clean( $code ) { return str_replace( '-', '', sanitize_title( $code ) ) . ( strstr( $code, '*' ) ? '*' : '' ); }