WC_Settings_Emails::output()publicWC 1.0

Output the settings.

Метод класса: WC_Settings_Emails{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WC_Settings_Emails = new WC_Settings_Emails();
$WC_Settings_Emails->output();

Код WC_Settings_Emails::output() WC 8.7.0

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();
}