WC_Product_CSV_Importer::starts_with
Check if strings starts with determined word.
Метод класса: WC_Product_CSV_Importer{}
Хуков нет.
Возвращает
true|false.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->starts_with( $haystack, $needle );
- $haystack(строка) (обязательный)
- Complete sentence.
- $needle(строка) (обязательный)
- Excerpt.
Код WC_Product_CSV_Importer::starts_with() WC Product CSV Importer::starts with WC 10.7.0
protected function starts_with( $haystack, $needle ) {
return substr( $haystack, 0, strlen( $needle ) ) === $needle;
}