Yoast\WP\SEO\MyYoast_Client\User_Interface

Management_Route::require_provisioned │ private │ Yoast 1.0

Returns a "not provisioned" response when SS or IAT is empty.

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

Хуков нет.

Возвращает

WP_REST_Response|null. Response when blocked, null otherwise.

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

// private - только в коде основоного (родительского) класса
$result = $this->require_provisioned(): ?WP_REST_Response;

Код Management_Route::require_provisioned() Yoast 28.7

private function require_provisioned(): ?WP_REST_Response {
	if ( $this->is_provisioned() ) {
		return null;
	}

	return $this->error_response( 'not_provisioned' );
}