Yoast\WP\SEO\Routes

SEMrush_Route::has_valid_keyphrase()publicYoast 1.0

Checks if a valid keyphrase is provided.

{} Это метод класса: SEMrush_Route{}

Хуков нет.

Возвращает

true|false. Whether or not the keyphrase is valid.

Использование

$SEMrush_Route = new SEMrush_Route();
$SEMrush_Route->has_valid_keyphrase( $keyphrase );
$keyphrase(строка) (обязательный)
The keyphrase to check.

Код SEMrush_Route::has_valid_keyphrase() Yoast 19.2

public function has_valid_keyphrase( $keyphrase ) {
	return \trim( $keyphrase ) !== '';
}