Hide menu item by callback function

Add option to hide menu item by supplied callback function,
same as disabled option.