Tips on Customizing WP Security Audit Log

How to Hide WP Security Audit Log Admin Menus

function plt_hide_wp_security_audit_log_menus() {
	//Hide "Dashboard →".
	remove_submenu_page('index.php', 'wsal-setup');

	//Hide "Audit Log".
	remove_menu_page('wsal-auditlog');
	//Hide "Audit Log → Audit Log Viewer".
	remove_submenu_page('wsal-auditlog', 'wsal-auditlog');
	//Hide "Audit Log → Enable/Disable Events".
	remove_submenu_page('wsal-auditlog', 'wsal-togglealerts');
	//Hide "Audit Log → Logged In Users".
	remove_submenu_page('wsal-auditlog', 'wsal-loginusers');
	//Hide "Audit Log → Email Notifications".
	remove_submenu_page('wsal-auditlog', 'wsal-emailnotifications');
	//Hide "Audit Log → Reports".
	remove_submenu_page('wsal-auditlog', 'wsal-reports');
	//Hide "Audit Log → DB & Integrations".
	remove_submenu_page('wsal-auditlog', 'wsal-externaldb');
	//Hide "Audit Log → Search".
	remove_submenu_page('wsal-auditlog', 'wsal-search');
	//Hide "Audit Log → Settings".
	remove_submenu_page('wsal-auditlog', 'wsal-settings');
	//Hide "Audit Log → Help".
	remove_submenu_page('wsal-auditlog', 'wsal-help');
	//Hide "Audit Log → Contact Us".
	remove_submenu_page('wsal-auditlog', 'wsal-auditlog-contact');
	//Hide "Audit Log → Upgrade".
	remove_submenu_page('wsal-auditlog', 'wsal-auditlog-pricing');
}

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

Where do I put this code?

How to Hide the "Latest Events | WP Security Audit Log" Dashboard Widget

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

	//Remove the "Latest Events | WP Security Audit Log" widget.
	remove_meta_box('wsal', 'dashboard', 'normal');
}

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