WP_Privacy_Requests_Table::get_admin_url

Advertisement

Summery Summery

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

Syntax Syntax

WP_Privacy_Requests_Table::get_admin_url()

Return Return

(string) URL to the current admin page.

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

Advertisement

Changelog Changelog

Changelog
Version Description
5.3.0 Introduced.

Advertisement

Leave a Reply