/** * Determines the current page details. This should be called after WordPress * has initialized wp_query. */ public function determineCurrentPageDetails() { if (!isset($this->current_page_type)) { $this->current_page_type = GooglePublisherPluginUtils::getWordPressPageType(); } if (!isset($this->exclude_ads)) { $this->exclude_ads = GooglePublisherPluginUtils::getExcludeAds(); } }