WC_Settings_Emails::output
Output the settings.
Метод класса: WC_Settings_Emails{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WC_Settings_Emails = new WC_Settings_Emails(); $WC_Settings_Emails->output();
Код WC_Settings_Emails::output() WC Settings Emails::output WC 10.5.2
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();
}