Tips on Customizing Responsive Google Effect Portfolio Grid

How to Hide Responsive Google Effect Portfolio Grid Admin Menus

function plt_hide_responsive_google_effect_portfolio_grid_menus() {
	//Hide "RGPG Portfolio".
	remove_menu_page('edit.php?post_type=rgpg_portfolio');
	//Hide "RGPG Portfolio → All Portfolio".
	remove_submenu_page('edit.php?post_type=rgpg_portfolio', 'edit.php?post_type=rgpg_portfolio');
	//Hide "RGPG Portfolio → Add Portfolio".
	remove_submenu_page('edit.php?post_type=rgpg_portfolio', 'post-new.php?post_type=rgpg_portfolio');
	//Hide "RGPG Portfolio → Portfolio Categories".
	remove_submenu_page('edit.php?post_type=rgpg_portfolio', 'edit-tags.php?taxonomy=rgpg_category&post_type=rgpg_portfolio');
	//Hide "RGPG Portfolio → RGPG Shortcode".
	remove_submenu_page('edit.php?post_type=rgpg_portfolio', 'rgpg_createsc');
	//Hide "RGPG Portfolio →".
	remove_submenu_page('edit.php?post_type=rgpg_portfolio', 'rgpg_editsc');
}

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

Where do I put this code?

How to Hide the "Please enter a custom link for this portfolio" Meta Box

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

	//Hide the "Please enter a custom link for this portfolio" meta box.
	remove_meta_box('rgpg_page', $screen->id, 'advanced');
}

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