WP_Privacy_Requests_Table::get_admin_url() WordPress Method

The WP_Privacy_Requests_Table::get_admin_url() method is used to get the URL of the privacy request administration page. This page allows you to view, edit, and delete privacy requests.

WP_Privacy_Requests_Table::get_admin_url() #

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


Return

(string) URL to the current admin page.


Top ↑

Source

File: wp-admin/includes/class-wp-privacy-requests-table.php

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


Top ↑

Changelog

Changelog
VersionDescription
5.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.