Support » Plugin: WooCommerce » Is it safe to enable Gutenberg in WooCommerce?

  • Resolved Leandro

    (@leandroprz)


    I found this snippet that enables Gutenberg blocks in WooCommerce products and I was wondering if it is safe to use?

    function wplook_activate_gutenberg_products($can_edit, $post_type){
    	if($post_type == 'product'){
    		$can_edit = true;
    	}
    	
    	return $can_edit;
    }
    add_filter('use_block_editor_for_post_type', 'wplook_activate_gutenberg_products', 10, 2);

    I tested it in my local environment and seems to work fine.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support maykato

    (@maykato)

    Hello,

    I tested the snippet on my test site (live environment) using Code Snippets
    , and it works fine for me too. Just so you know, we are unable to provide support for customizations under our Support Policy. If you need any assistance with the code and/or customization, please reach out to a web developer or one of our experts.

    Thread Starter Leandro

    (@leandroprz)

    Thank you.

    May I ask why is Gutenberg not enabled by default in WooCommerce?

    Plugin Support maykato

    (@maykato)

    This is something that hasn’t been available in WooCommerce as of now. But feel free to add the idea to our Ideas Board – There’s no guarantee on when/if this will be developed 😉

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.