How to Hide the "Discounts" Meta Box

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

	//Hide the "Discounts" meta box.
	remove_meta_box('seraph_wd_settings', $screen->id, 'normal');
}

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

Where do I put this code?