How to Hide Ultimate Blocks Admin Menus

function plt_hide_ultimate_blocks_menus() {
	//Hide "Ultimate Blocks".
	remove_menu_page('ultimate-blocks-settings');
	//Hide "Ultimate Blocks → Ultimate Blocks".
	remove_submenu_page('ultimate-blocks-settings', 'ultimate-blocks-settings');
	//Hide "Ultimate Blocks → Contact Us".
	remove_submenu_page('ultimate-blocks-settings', 'ultimate-blocks-settings-contact');
	//Hide "Ultimate Blocks → Add-Ons".
	remove_submenu_page('ultimate-blocks-settings', 'ultimate-blocks-settings-addons');
}

add_action('admin_menu', 'plt_hide_ultimate_blocks_menus', 1000000000);

Where do I put this code?