I don’t think there is a clean way to put arbitrary link into the menu item. At most you could change it with JavaScript after the fact.
However there is an edge case that allows you to load plugin file there.
- Pass as
$menu_slug
argument a path to a plugin file relative to plugins directory, for exampleplugin-folder/boo.php
. - Omit
$function
argument. - This will generate link like
admin.php?page=plugin-folder/boo.php
. - Following the link will load the file as content of admin page.
There isn’t actually much benefit over just using callback for output. But from technical point of view this is about as close as possible to including a file in there.