WordPress at a glance
function is not described

wc_get_current_admin_url() WC 4.4.0

Get current admin page URL.

Returns an empty string if it cannot generate a URL.

No Hooks.

Return

String. Nothing.

Usage

wc_get_current_admin_url();

Changelog

Since 4.4.0 Introduced.

Code of wc_get_current_admin_url() WC 5.2.2

<?php
function wc_get_current_admin_url() {
	$uri = isset( $_SERVER['REQUEST_URI'] ) ? esc_url_raw( wp_unslash( $_SERVER['REQUEST_URI'] ) ) : '';
	$uri = preg_replace( '|^.*/wp-admin/|i', '', $uri );

	if ( ! $uri ) {
		return '';
	}

	return remove_query_arg( array( '_wpnonce', '_wc_notice_nonce', 'wc_db_update', 'wc_db_update_nonce', 'wc-hide-notice' ), admin_url( $uri ) );
}