Tips on Customizing WooCommerce PDF Invoices, Packing Slips & Shipping Labels (Woo Invoice)

How to Hide the "Woo Invoice" Meta Box

function plt_hide_webappick_pdf_invoice_for_woocommerce_metaboxes() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Hide the "Woo Invoice" meta box.
	remove_meta_box('wpifw-meta-box', $screen->id, 'side');
}

add_action('add_meta_boxes', 'plt_hide_webappick_pdf_invoice_for_woocommerce_metaboxes', 20);

Where do I put this code?

How to Hide the "Latest News from WebAppick Blog" Dashboard Widget

function plt_hide_webappick_pdf_invoice_for_woocommerce_dashboard_widgets() {
	$screen = get_current_screen();
	if ( !$screen ) {
		return;
	}

	//Remove the "Latest News from WebAppick Blog" widget.
	remove_meta_box('aaaa_webappick_latest_news_dashboard_widget', 'dashboard', 'side');
}

add_action('wp_dashboard_setup', 'plt_hide_webappick_pdf_invoice_for_woocommerce_dashboard_widgets', 20);