Yoast\WP\SEO\AI_Generator\User_Interface

Bust_Subscription_Cache_Route::bust_subscription_cachepublicYoast 1.0

Runs the callback that busts the subscription cache.

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

Хуков нет.

Возвращает

WP_REST_Response. The response of the callback action.

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

$Bust_Subscription_Cache_Route = new Bust_Subscription_Cache_Route();
$Bust_Subscription_Cache_Route->bust_subscription_cache(): WP_REST_Response;

Код Bust_Subscription_Cache_Route::bust_subscription_cache() Yoast 28.3

public function bust_subscription_cache(): WP_REST_Response {
	$this->addon_manager->remove_site_information_transients();

	return new WP_REST_Response( 'Subscription cache successfully busted.' );
}