Automattic\WooCommerce\Internal\Admin\EmailPreview

EmailPreview::clean_up_filters()privateWC 1.0

Clean up filters after email preview.

Method of the class: EmailPreview{}

No Hooks.

Return

null. Nothing (null).

Usage

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

EmailPreview::clean_up_filters() code WC 9.7.1

private function clean_up_filters() {
	remove_filter( 'woocommerce_order_needs_shipping_address', array( $this, 'enable_shipping_address' ) );
	remove_filter( 'woocommerce_order_item_product', array( $this, 'get_dummy_product_when_not_set' ), 10 );
	remove_filter( 'woocommerce_is_email_preview', array( $this, 'enable_preview_mode' ) );
	remove_filter( 'woocommerce_order_shipping_method', array( $this, 'get_shipping_method' ) );
}