Tips on Customizing Advanced Access Manager

How to Hide Advanced Access Manager Admin Menus

function plt_hide_advanced_access_manager_menus() {
	//Hide the "AAM" menu.
	remove_menu_page('aam');
}

add_action('admin_menu', 'plt_hide_advanced_access_manager_menus', 15);

Where do I put this code?

How to Hide the "Access Manager" Meta Box

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

	//Hide the "Access Manager" meta box.
	remove_meta_box('aam-access-manager', $screen->id, 'advanced');
}

add_action('add_meta_boxes', 'plt_hide_advanced_access_manager_metaboxes', 20);