WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features\Navigation

Menu::get_callback_url() public WC 1.0

Convert a WordPress menu callback to a URL.

{} It's a method of the class: Menu{}

No Hooks.

Return

String. Nothing.

Usage

$result = Menu::get_callback_url( $callback );
$callback(string) (required)
Menu callback.

Code of Menu::get_callback_url() WC 5.3.0

<?php
public static function get_callback_url( $callback ) {
	// Return the full URL.
	if ( strpos( $callback, 'http' ) === 0 ) {
		return $callback;
	}

	$pos  = strpos( $callback, '?' );
	$file = $pos > 0 ? substr( $callback, 0, $pos ) : $callback;
	if ( file_exists( ABSPATH . "/wp-admin/$file" ) ) {
		return $callback;
	}
	return 'admin.php?page=' . $callback;
}