芝麻web文件管理V1.00
编辑当前文件:/home/ezdajrnh/public_html/wp-content/plugins/google-listings-and-ads/src/Ads/AdsService.php
account_state = $account_state; } /** * Determine whether Ads setup has been started. * * @since 1.11.0 * @return bool */ public function is_setup_started(): bool { return $this->account_state->last_incomplete_step() !== '' && ! $this->is_setup_complete(); } /** * Determine whether Ads setup has completed. * * @return bool */ public function is_setup_complete(): bool { return boolval( $this->options->get( OptionsInterface::ADS_SETUP_COMPLETED_AT, false ) ); } /** * Determine whether Ads has connected. * * @return bool */ public function is_connected(): bool { $google_connected = boolval( $this->options->get( OptionsInterface::GOOGLE_CONNECTED, false ) ); return $google_connected && $this->is_setup_complete(); } /** * Determine whether the Ads account is connected, even when pending billing. * * @return bool */ public function connected_account(): bool { $id = $this->options->get_ads_id(); $last_step = $this->account_state->last_incomplete_step(); return $id && ( $last_step === '' || $last_step === 'billing' ); } }