Automattic\WooCommerce\Internal\VariationGallery
ClassicVariationGalleryAdmin::is_product_edit_screen
Determine if the current screen is the classic product editor.
Method of the class: ClassicVariationGalleryAdmin{}
No Hooks.
Returns
true|false.
Usage
// private - for code of main (parent) class only $result = $this->is_product_edit_screen(): bool;
ClassicVariationGalleryAdmin::is_product_edit_screen() ClassicVariationGalleryAdmin::is product edit screen code WC 10.9.1
private function is_product_edit_screen(): bool {
if ( ! function_exists( 'get_current_screen' ) ) {
return false;
}
$screen = get_current_screen();
return $screen && 'product' === $screen->id;
}