Following code adds wm.save_homefile
operator to the Render menu.
import bpy
def menu_draw(self, context):
self.layout.operator("wm.save_homefile")
bpy.types.TOPBAR_MT_render.append(menu_draw)
Q: How can I add this operator to Object menu of the 3d View?