Support » Plugin: Adminimize » need support for Customize item

  • karimidev73

    (@karimidev73)


    As I checked it works for many menu items, but it can’t hide the Customize item menu, so I prefer my to doing it with custom coding, with less lines of codes.

    Here is what I use to hide the customize menu item

    $customizer_url = add_query_arg( 'return', urlencode( remove_query_arg( wp_removable_query_args(), wp_unslash( $_SERVER['REQUEST_URI'] ) ) ), 'customize.php' );
            remove_submenu_page( 'themes.php', $customizer_url );
  • You must be logged in to reply to this review.