Tips on Customizing TF Random Numbers

How to Hide TF Random Numbers Admin Menus

function plt_hide_tf_numbers_number_counter_animaton_menus() {
	//Hide "Random Numbers".
	remove_menu_page('edit.php?post_type=tf_stats');
	//Hide "Random Numbers → All Numbers".
	remove_submenu_page('edit.php?post_type=tf_stats', 'edit.php?post_type=tf_stats');
	//Hide "Random Numbers → Add Numbers".
	remove_submenu_page('edit.php?post_type=tf_stats', 'post-new.php?post_type=tf_stats');
	//Hide "Random Numbers → Licenses".
	remove_submenu_page('edit.php?post_type=tf_stats', 'ed-licencing');
	//Hide "Random Numbers → About".
	remove_submenu_page('edit.php?post_type=tf_stats', 'tf-dashboard');
	//Hide "Random Numbers → Addons".
	remove_submenu_page('edit.php?post_type=tf_stats', 'tf-addons');
}

add_action('admin_menu', 'plt_hide_tf_numbers_number_counter_animaton_menus', 11);

Where do I put this code?

How to Hide TF Random Numbers Meta Boxes

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

	//Hide the "Save/Update Numbers" meta box.
	remove_meta_box('submitdiv', $screen->id, 'side');
	//Hide the "Info" meta box.
	remove_meta_box('tf_ad', $screen->id, 'side');
	//Hide the "More Options" meta box.
	remove_meta_box('_tf_side', $screen->id, 'side');
	//Hide the "Thank You For Using TF Numbers Plugin" meta box.
	remove_meta_box('tf_tnk', $screen->id, 'normal');
	//Hide the "Random Numbers" meta box.
	remove_meta_box('_tf_stats_box', $screen->id, 'normal');
	//Hide the "General Options" meta box.
	remove_meta_box('_tf_stats_bg', $screen->id, 'normal');
	//Hide the "Numbers Style" meta box.
	remove_meta_box('_tf_stats_stle', $screen->id, 'normal');
	//Hide the "Addon Options" meta box.
	remove_meta_box('_tf_addons', $screen->id, 'normal');
}

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