Automattic\WooCommerce\Admin\Features\ProductBlockEditor

RedirectionController::is_legacy_edit_screen()protectedWC 1.0

Check if the current screen is the legacy edit product screen.

Method of the class: RedirectionController{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->is_legacy_edit_screen(): bool;

RedirectionController::is_legacy_edit_screen() code WC 9.7.1

protected function is_legacy_edit_screen(): bool {
	$screen = get_current_screen();
	return 'post' === $screen->base
		&& 'product' === $screen->post_type
		&& isset( $_GET['post'] )
		&& isset( $_GET['action'] )
		&& 'edit' === $_GET['action'];
}