Automattic\WooCommerce\Admin\Features\ProductBlockEditor
RedirectionController::is_legacy_add_new_screen()
Check if the current screen is the legacy add product screen.
Method of the class: RedirectionController{}
No Hooks.
Returns
null
. Nothing (null).
Usage
// protected - for code of main (parent) or child class $result = $this->is_legacy_add_new_screen(): bool;
RedirectionController::is_legacy_add_new_screen() RedirectionController::is legacy add new screen code WC 9.8.5
protected function is_legacy_add_new_screen(): bool { $screen = get_current_screen(); return 'post' === $screen->base && 'product' === $screen->post_type && 'add' === $screen->action; }