Automattic\WooCommerce\Admin\Features\ProductBlockEditor
RedirectionController::is_legacy_edit_screen
Check if the current screen is the legacy edit product screen.
Метод класса: RedirectionController{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->is_legacy_edit_screen(): bool;
Код RedirectionController::is_legacy_edit_screen() RedirectionController::is legacy edit screen WC 10.5.0
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'];
}