get_page_options( $this->get_page_id() ); // Get sub-settings for each email. foreach ( $emails->get_emails() as $email ) { $email_settings = array_merge( $email_settings, $setting_options->get_page_options( 'email_' . $email->id ) ); } return new SetSiteOptions( $email_settings ); } /** * Return label used in the frontend. * * @return string */ public function get_label() { return __( 'Emails', 'woocommerce' ); } /** * Return description used in the frontend. * * @return string */ public function get_description() { return __( 'Includes all settings in WooCommerce | Settings | Emails.', 'woocommerce' ); } /** * Get the page ID for the settings page. * * @return string */ protected function get_page_id(): string { return 'email'; } }