Support » Plugin: Polylang » Remove polylang admin menu items

  • Hi, how we can remove polylang admin menu items?

    I tried second code:

    remove_submenu_page( 'admin.php?page=mlang', 'admin.php?page=mlang' );
    remove_submenu_page( 'admin.php', 'mlang' );

    unsuccessfully.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chouby

    (@chouby)

    Hi,

    add_action( 'init', function() {
    	if ( PLL_ADMIN ) {
    		remove_action( 'admin_menu', array( PLL(), 'add_menus' ) );
    	}
    } );

    However, the easiest is not to give the manage_options capability to the users who don’t have to access to Polylang options.

    Thread Starter misterixas111

    (@misterixas111)

    manage_options for specific post type? or for whole wordpress? How properly do that?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove polylang admin menu items’ is closed to new replies.