WordPress at Your Fingertips
function is not described

WP_Privacy_Requests_Table::get_admin_url() protected WP 5.3.0

Normalize the admin URL to the current page (by request_type).

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

No Hooks.

Return

String. URL to the current admin page.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_admin_url();

Changelog

Since 5.3.0 Introduced.

Code of WP_Privacy_Requests_Table::get_admin_url() WP 5.8.2

protected function get_admin_url() {
	$pagenow = str_replace( '_', '-', $this->request_type );

	if ( 'remove-personal-data' === $pagenow ) {
		$pagenow = 'erase-personal-data';
	}

	return admin_url( $pagenow . '.php' );
}