How to Hide BlockStrap Page Builder Blocks Admin Menus

function plt_hide_blockstrap_page_builder_blocks_menus() {
	//Hide the "Settings → Font Awesome" menu.
	remove_submenu_page('options-general.php', 'wp-font-awesome-settings');
	//Hide the "Settings → AyeCode UI" menu.
	remove_submenu_page('options-general.php', 'ayecode-ui-settings');
}

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

Where do I put this code?