11

How to Hide the Advanced Access Manager Metabox on WordPress Posts

Powered by WPCodeBox

This WordPress snippet hides the AAM (Advanced Access Manager) metabox, helping you customize and streamline your post editing screen.


<?php

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

	remove_meta_box('aam-access-manager', $screen->id, 'advanced');
}

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

Other Snippets

WPCodeBox is a WordPress Code Snippets Manager that allows you to share your WordPress Code Snippets across your sites.