WordPress at Your Fingertips
function is not described

WC_Post_Types::gutenberg_can_edit_post_type() public WC 1.0

Disable Gutenberg for products.

{} It's a method of the class: WC_Post_Types{}

No Hooks.

Return

true|false.

Usage

$result = WC_Post_Types::gutenberg_can_edit_post_type( $can_edit, $post_type );
$can_edit(true|false) (required)
Whether the post type can be edited or not.
$post_type(string) (required)
The post type being checked.

Code of WC_Post_Types::gutenberg_can_edit_post_type() WC 5.7.0

public static function gutenberg_can_edit_post_type( $can_edit, $post_type ) {
	return 'product' === $post_type ? false : $can_edit;
}