WC_Settings_Emails::output()

Output the settings.


Description Description


Source Source

File: includes/admin/settings/class-wc-settings-emails.php

230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
public function output() {
    global $current_section;
 
    // Define emails that can be customised here.
    $mailer          = WC()->mailer();
    $email_templates = $mailer->get_emails();
 
    if ( $current_section ) {
        foreach ( $email_templates as $email_key => $email ) {
            if ( strtolower( $email_key ) === $current_section ) {
                $email->admin_options();
                break;
            }
        }
    } else {
        $settings = $this->get_settings();
        WC_Admin_Settings::output_fields( $settings );
    }
}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.