Yoast\WP\SEO\Generators\Schema

Breadcrumb::not_empty_text()privateYoast 1.0

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() Yoast 22.4

private function not_empty_text( $breadcrumb ) {
	return ! empty( $breadcrumb['text'] );
}