Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories\Admin

UI::is_download_urls_screen()privateWC 1.0

Indicates if we are currently on the download URLs admin screen.

Method of the class: UI{}

No Hooks.

Return

true|false.

Usage

// private - for code of main (parent) class only
$result = $this->is_download_urls_screen(): bool;

UI::is_download_urls_screen() code WC 8.7.0

private function is_download_urls_screen(): bool {
	// phpcs:disable WordPress.Security.NonceVerification.Recommended
	return isset( $_GET['tab'] )
		&& 'products' === $_GET['tab']
		&& isset( $_GET['section'] )
		&& 'download_urls' === $_GET['section'];
	// phpcs:enable
}