WC_Product_CSV_Importer_Controller::sanitize_special_column_name_regex
Sanitize special column name regex.
Method of the class: WC_Product_CSV_Importer_Controller{}
No Hooks.
Returns
String.
Usage
// protected - for code of main (parent) or child class $result = $this->sanitize_special_column_name_regex( $value );
- $value(string) (required)
- Raw special column name.
WC_Product_CSV_Importer_Controller::sanitize_special_column_name_regex() WC Product CSV Importer Controller::sanitize special column name regex code WC 10.6.2
protected function sanitize_special_column_name_regex( $value ) {
return '/' . str_replace( array( '%d', '%s' ), '(.*)', trim( quotemeta( $value ) ) ) . '/i';
}