WC_Product_CSV_Importer_Controller::sanitize_special_column_name_regex
Sanitize special column name regex.
Метод класса: WC_Product_CSV_Importer_Controller{}
Хуков нет.
Возвращает
Строку.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->sanitize_special_column_name_regex( $value );
- $value(строка) (обязательный)
- Raw special column name.
Код WC_Product_CSV_Importer_Controller::sanitize_special_column_name_regex() WC Product CSV Importer Controller::sanitize special column name regex WC 10.5.2
protected function sanitize_special_column_name_regex( $value ) {
return '/' . str_replace( array( '%d', '%s' ), '(.*)', trim( quotemeta( $value ) ) ) . '/i';
}