This isn't WooCommerce!

Use sanitize_text_field() instead.