Tips on Customizing Spam protection, Anti-Spam, FireWall by CleanTalk

How to Hide Anti-Spam by CleanTalk Admin Menus

function plt_hide_cleantalk_spam_protect_menus() {
	//Hide "Users → Find spam users".
	remove_submenu_page('users.php', 'ct_check_users');
	//Hide "Settings → Anti-Spam by CleanTalk".
	remove_submenu_page('options-general.php', 'cleantalk');

	//Hide "Comments → All Comments".
	remove_submenu_page('edit-comments.php', 'edit-comments.php');
	//Hide "Comments → Find spam comments".
	remove_submenu_page('edit-comments.php', 'ct_check_spam');
}

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

Where do I put this code?

How to Hide the "Anti-Spam by CleanTalk" Dashboard Widget

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

	//Remove the "Anti-Spam by CleanTalk" widget.
	remove_meta_box('ct_dashboard_statistics_widget', 'dashboard', 'normal');
}

add_action('wp_dashboard_setup', 'plt_hide_cleantalk_spam_protect_dashboard_widgets', 20);