Yanfly Item Core: Remove Use Command from Weapons/Armor

Been on a plugin-modding roll these past couple of days but alas I am stumped. Trying to accomplish this one step.
  • Remove the Use Item command from weapons and armor as demonstrated in the pixelated selection.
    d8VLh4C.png
Update: I resolved my rut by adding if (DataManager.isWeapon(this._item)) return false; and if (DataManager.isArmor(this._item)) return false; before this.addCommand(text, 'use', enabled ); in YEP_ItemCore.

Can a mod please close this topic?

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/yanfly-item-core-remove-use-command-from-weapons-armor.77487/