Yoast\WP\SEO\Routes

Wincher_Route::has_valid_website_id()publicYoast 1.0

Checks if a valid website_id was returned.

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

Хуков нет.

Возвращает

true|false. Whether the website_id is valid.

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

$Wincher_Route = new Wincher_Route();
$Wincher_Route->has_valid_website_id( $website_id );
$website_id(int) (обязательный)
The website_id to check.

Код Wincher_Route::has_valid_website_id() Yoast 19.11

public function has_valid_website_id( $website_id ) {
	return ! empty( $website_id ) && \is_int( $website_id );
}