WC_Settings_Emails::output()
Output the settings.
Method of the class: WC_Settings_Emails{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Settings_Emails = new WC_Settings_Emails(); $WC_Settings_Emails->output();
WC_Settings_Emails::output() WC Settings Emails::output code WC 9.7.1
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 ) { $this->run_email_admin_options( $email ); break; } } } parent::output(); }