Automattic\WooCommerce\Internal\Admin\EmailPreview

EmailPreview::clean_up_filterspublicWC 1.0

Clean up filters after email preview.

Method of the class: EmailPreview{}

No Hooks.

Returns

null. Nothing (null).

Usage

$EmailPreview = new EmailPreview();
$EmailPreview->clean_up_filters();

EmailPreview::clean_up_filters() code WC 10.4.3

public 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_item_thumbnail', array( $this, 'get_placeholder_image' ) );
	remove_filter( 'woocommerce_is_downloadable', array( $this, 'force_product_downloadable' ), 10 );
	remove_filter( 'woocommerce_product_file', array( $this, 'provide_dummy_product_file' ), 10 );
	remove_filter( 'woocommerce_order_get_downloadable_items', array( $this, 'get_dummy_downloadable_items' ), 10 );
	$this->restore_locale();
}