WP_Privacy_Requests_Table::get_admin_url()protectedWP 5.3.0

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

Метод класса: WP_Privacy_Requests_Table{}

Хуков нет.

Возвращает

Строку. URL to the current admin page.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_admin_url();

Список изменений

С версии 5.3.0 Введена.

Код WP_Privacy_Requests_Table::get_admin_url() WP 6.5.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' );
}