Tips on Customizing Ultra Slideshow

How to Hide Ultra Slideshow Admin Menus

function plt_hide_ultra_slideshow_menus() {
	//Hide the "Slideshow" menu.
	//Hide the "Slideshow → Slideshow" menu.
	remove_submenu_page('edit.php?post_type=ud_slideshow', 'edit.php?post_type=ud_slideshow');
	//Hide the "Slideshow → Add New" menu.
	remove_submenu_page('edit.php?post_type=ud_slideshow', 'post-new.php?post_type=ud_slideshow');

add_action('admin_menu', 'plt_hide_ultra_slideshow_menus', 15);

Where do I put this code?

How to Hide Ultra Slideshow Meta Boxes

function plt_hide_ultra_slideshow_metaboxes() {
	$screen = get_current_screen();
	if ( !$screen ) {

	//Hide the "Image Gallery" meta box.
	remove_meta_box('uss_gallery', $screen->id, 'advanced');
	//Hide the "Settings" meta box.
	remove_meta_box('uss_settings', $screen->id, 'advanced');
	//Hide the "Shortcode" meta box.
	remove_meta_box('uss_shortcode', $screen->id, 'side');

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