Yoast\WP\SEO\Generators\Schema
Breadcrumb::not_empty_text()
Checks whether the breadcrumb has a not empty text.
Метод класса: Breadcrumb{}
Хуков нет.
Возвращает
true|false
. If the breadcrumb has a not empty text.
Использование
// private - только в коде основоного (родительского) класса $result = $this->not_empty_text( $breadcrumb );
- $breadcrumb(массив) (обязательный)
- The breadcrumb array.
Код Breadcrumb::not_empty_text() Breadcrumb::not empty text Yoast 24.4
private function not_empty_text( $breadcrumb ) { return ! empty( $breadcrumb['text'] ); }