Yoast\WP\SEO\Routes

SEMrush_Route::has_valid_code()publicYoast 1.0

Checks if a valid code was returned.

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

Хуков нет.

Возвращает

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

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

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

Код SEMrush_Route::has_valid_code() Yoast 20.0

public function has_valid_code( $code ) {
	return $code !== '';
}