integrations ) ) { return new SetSiteOptions( array() ); } $integrations = WC()->integrations->get_integrations(); $settings = array(); foreach ( $integrations as $integration ) { $option_key = $integration->get_option_key(); $settings[ $option_key ] = get_option( $option_key, null ); } return new SetSiteOptions( $settings ); } /** * Return description used in the frontend. * * @return string */ public function get_description() { return __( 'Includes all settings in WooCommerce | Settings | Integrations.', 'woocommerce' ); } /** * Get the page ID for the settings page. * * @return string */ protected function get_page_id(): string { return 'integration'; } }