Is there a way to disable items (Make it not a visible command) in combat for MZ?

Trying to figure out a different way to do items in combat, and I want to disable the default items menu to create a different one (Based on a skills command) I was just wondering if anyone already knew how to do this...
You could try saving this as a .js file (copy+paste into text editor, Save As > File Type: All Files, Filename: whatever.js) and import as a plugin:
JavaScript:
Window_ActorCommand.prototype.addItemCommand = function() {};
I think this'll remove the "Item" command from the "Attack", "Guard", "Skill", "Item" action menu.
Worked like a charm! Thank you so much!

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-disable-items-make-it-not-a-visible-command-in-combat-for-mz.130733/