How to Hide Advanced Gutenberg Blocks Admin Menus

function plt_hide_advanced_gutenberg_blocks_menus() {
	//Hide "Blocks".
	remove_menu_page('advanced-gutenberg-blocks');
	//Hide "Blocks → Manage Blocks".
	remove_submenu_page('advanced-gutenberg-blocks', 'advanced-gutenberg-blocks-manager');
	//Hide "Blocks → Disable WP Blocks".
	remove_submenu_page('advanced-gutenberg-blocks', 'advanced-gutenberg-blocks-disable');
	//Hide "Blocks → Tweak Editor".
	remove_submenu_page('advanced-gutenberg-blocks', 'advanced-gutenberg-blocks-settings');
	//Hide "Blocks → Rich Text Tools".
	remove_submenu_page('advanced-gutenberg-blocks', 'advanced-gutenberg-blocks-richtext');
}

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

Where do I put this code?