api instanceof Ahrefs_Seo_Analytics ) { if ( $this->api->is_gsc_paused() ) { $result = true; // if API in unavailable. } } return $result; } /** * Callback for on rate error * * @param Throwable $e Error source. * @param array|null $page_slugs_list List of page slugs, where this error happened. * @return void */ public function on_rate_error( Throwable $e, array $page_slugs_list = [] ) { parent::on_rate_error( $e, $page_slugs_list ); if ( $this->api instanceof Ahrefs_Seo_Analytics ) { $this->api->set_gsc_paused( true ); } } }