WC_Settings_Emails::delete_transient_email_settingsprivateWC 1.0

Deletes transient with email settings used for live preview. This is to prevent conflicts where the preview would show values from previous session.

Method of the class: WC_Settings_Emails{}

No Hooks.

Returns

null. Nothing (null).

Usage

// private - for code of main (parent) class only
$result = $this->delete_transient_email_settings();

WC_Settings_Emails::delete_transient_email_settings() code WC 10.3.6

private function delete_transient_email_settings() {
	$setting_ids = EmailPreview::get_all_email_setting_ids();
	foreach ( $setting_ids as $id ) {
		delete_transient( $id );
	}
}