AddCheckinCheckoutMenuItem is a function used in the Core.js file, we are overridding the same function and doing no actions inside the same. Like the same way, we can hide any option from the context menu.