Tips on Customizing Advanced Access Manager

How to Hide Advanced Access Manager Admin Menus

function plt_hide_advanced_access_manager_menus() {
	//Hide "AAM".
	remove_menu_page('aam');
	//Hide "AAM → AAM".
	remove_submenu_page('aam', 'aam');
	//Hide "AAM → Access Policies".
	remove_submenu_page('aam', 'edit.php?post_type=aam_policy');
	//Hide "AAM → Add New Policies".
	remove_submenu_page('aam', 'post-new.php?post_type=aam_policy');
}

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);