WP_Privacy_Requests_Table::get_admin_url(): string

In this article

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

Return

string URL to the current admin page.

Source

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' );
}

Changelog

VersionDescription
5.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.