Yoast\WP\SEO\Routes

Wincher_Route::has_valid_code()publicYoast 1.0

Checks if a valid code was returned.

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

Хуков нет.

Возвращает

true|false. Whether the code is valid.

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

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

Код Wincher_Route::has_valid_code() Yoast 20.0

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