Yoast\WP\SEO\Routes

Settings_Introduction_Route::get_wistia_embed_permission()publicYoast 1.0

Устарела с версии 20.7. Больше не поддерживается и может быть удалена. Рекомендуется заменить эту функцию на аналог.

Gets the value of the wistia embed permission.

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

Хуков нет.

Возвращает

WP_REST_Response|WP_Error. The response, or an error.

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

$Settings_Introduction_Route = new Settings_Introduction_Route();
$Settings_Introduction_Route->get_wistia_embed_permission();

Список изменений

Устарела с 20.7

Код Settings_Introduction_Route::get_wistia_embed_permission() Yoast 22.4

public function get_wistia_embed_permission() {
	\_deprecated_function( __METHOD__, 'Yoast SEO 20.7' );

	try {
		$value = $this->settings_introduction_action->get_wistia_embed_permission();
	} catch ( Exception $exception ) {
		return new WP_Error(
			'wpseo_settings_introduction_error',
			$exception->getMessage(),
			(object) []
		);
	}

	return new WP_REST_Response(
		[
			'json' => (object) [
				'value' => $value,
			],
		]
	);
}